My problem is that cpu times returned by getrusage seem to be rounded to 10
ms units (so also does time.clock).
I never noticed such a low resolution in previous versions. Since I have not
found similar reports on the web, it probably is not a general bug in
(rather outdated) version 2.2.1. Any idea what could be wrong with this
peculiar installation?
Thanks a lot!
Python 2.2.1 (#3, May 3 2002, 16:42:06)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright" , "credits" or "license" for more information. import resource print resource.getrus age(resource.RU SAGE_SELF)
(0.01, 0.0400000000000 00001, 0, 0, 0, 0, 186, 410, 0, 0, 0, 0, 0, 0, 0, 0) for i in range(1000000): pass
.... print resource.getrus age(resource.RU SAGE_SELF)
(0.269999999999 99996, 0.0599999999999 99998, 0, 0, 0, 0, 4116, 414, 0, 0, 0,
0, 0, 0, 0, 0)
--
____ __ _/_/ .
( / / ( / / / /
=============== =============== =============== =============== =========
Matthias Oberlaender, DaimlerChrysler AG, Research Center Ulm
RIC/AP (Machine Perception)
Wilhelm-Runge-Str. 11, P.O. Box 2360, 89013 Ulm, Germany
Phone: +49 731 505 2354 Fax: +49 731 505 4105
Email: ma************* *****@VOID.daim lerchrysler.com
=============== =============== =============== =============== ========= 0 1820 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stuart D. Gathman |
last post by:
When I call resource.getrusage on Linux, I don't get any memory stats:
Python 2.2.2 (#1, Jan 30 2003, 21:26:22)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from resource import getrusage,RUSAGE_SELF
>>> print getrusage(RUSAGE_SELF)
(0.019531, 0.0078119999999999995, 0, 0, 0, 0, 178, 387, 0, 0, 0, 0, 0, 0, 0, 0)
>>>
|
by: Erik Bethke |
last post by:
Hello All,
I am trying to clean up some polish bugs with the Shanghai game I am
working on and I am currently stuck on trying to get the right event
for detecting when the user has changed the desktop resolution.
I have tried trapping the following events:
1) SDL_ACTIVEEVENT
2) SDL_VIDEOEXPOSE
|
by: Erik Bethke |
last post by:
Hello All,
I am trying to clean up some polish bugs with the Shanghai game I am
working on and I am currently stuck on trying to get the right event
for detecting when the user has changed the desktop resolution.
I have tried trapping the following events:
1) SDL_ACTIVEEVENT
2) SDL_VIDEOEXPOSE 3) SDL_VIDEORESIZE
|
by: Michael Evans |
last post by:
Anyone,
I'm looking for a way to setup a callback function in our VC++ .ne
2003 7.1 console application using a higher resolution timer. Th
multimedia timer is too low resolution at 1 millisecond. We nee
microsecond resolution to guarantee an exact update rate (60 or 70 H
for example.)
We use the Performance Counter to get microsecond resolution whe
measuring elapsed time, but there doesn't appear to be any tools fo
|
by: JIM.H. |
last post by:
Hello,
Is there any way I can get current screen resolution setting in asp.net. I
am trying to get it and set the reportviewer component size so that scroll
bars on the reportviewer component are always displayed on the screen.
Thanks,
Jim.
| |
by: jUrner |
last post by:
Hello all
I have the problem of how to calculate the resolution of the system
clock.
Its now two days of head sratching and still there is nothing more than
these few lines on my huge white sheet of paper stiring at me. Lame I
know.
import time
|
by: Steve |
last post by:
I'm trying real hard to set the printer resolution for a PrintDocument. It
appears that the printer is already set to 300 x 300 dpi, which is JUST what
I want.
But the Margins and PrintableArea properties of the PageSettings in the
Print handler are reporting values that indicate 100 dpi, for example it
reports PaperSize as 850, 1100 (8.5" x 11")
I'm passing these Rectangle properties into a method that is drawing
thinking it's working...
|
by: kwatch |
last post by:
Hi,
I have a question about os.times().
os.times() returns a tuple containing user time and system time,
but it is not matched to the result of 'time' command.
For example, os.times() reports that user time is 39.85 sec,
but 'time' command reports that user time is 28.55sec.
(machine: Python2.5, MacOS X 10.4 Tiger, MacBook 1.83GHz intel core
duo)
|
by: Charles Zhang |
last post by:
Sleep() function Sleep at lease 1 millisecond, there is a way to make a
thread to sleep less than a millisecond? One way I know of is using
performance counter which is not really sleep ( loop and check again and
again and uses CPU time).
Thanks
Charles Zhang
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |