Re: hundreds of seconds?

2006-10-12 Thread neoedmund
is I want a precision of 1%. The radiator fan that I use can't stand these long intervals, 'cause I run it with 24V and 50 Amps to get decent airflow (10m/s) through my heat exchanger. Again: how do I get the hundreds of seconds from the system clock? In Pascal it was: GetTime( Hr1, Min1, Sec1

hundreds of seconds?

2006-10-11 Thread eur . van . andel
seconds, I need to wait 100 seconds for may calculation is I want a precision of 1%. The radiator fan that I use can't stand these long intervals, 'cause I run it with 24V and 50 Amps to get decent airflow (10m/s) through my heat exchanger. Again: how do I get the hundreds of seconds from

Re: hundreds of seconds?

2006-10-11 Thread Diez B. Roggisch
get the hundreds of seconds from the system clock? In Pascal it was: GetTime( Hr1, Min1, Sec1, cSec1); (yes, I'm that old). time.time() returns the system time in seconds since the epoch (1970). The fractional part is relevant. However, be aware that your OS may limit the precision here

RE: hundreds of seconds?

2006-10-11 Thread Michael . Coll-Barth
-Original Message- From: [EMAIL PROTECTED] How can I access partial seconds on the system clock? What is wrong with time.time()? import time time.time() 1160578386.0109401 time.time() 1160578386.87324 time.time() 1160578387.5790291 x = time.time() y = time.time() z = y-x z

Re: hundreds of seconds?

2006-10-11 Thread eur . van . andel
[EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] How can I access partial seconds on the system clock? What is wrong with time.time()? Absolutely nothing. import time time.time() 1160578386.0109401 time.time() 1160578386.87324 time.time()

Re: hundreds of seconds?

2006-10-11 Thread Tim Peters
[EMAIL PROTECTED] ... G5-fiwihex:~ eur$ python Python 2.3.5 (#1, Mar 20 2005, 20:38:20) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin Type help, copyright, credits or license for more information. import time time.time() 1160580871.258379 My G5 has lots of digits

Re: hundreds of seconds?

2006-10-11 Thread Duncan Booth
Diez B. Roggisch [EMAIL PROTECTED] wrote: However, be aware that your OS may limit the precision here. I'm not sure, but I think Windows for example doesn't get faster than 10th or 100th of a second. 1/100th of a second. For more precise timing, you might need a special library/extension

Re: hundreds of seconds?

2006-10-11 Thread Blair P. Houghton
Tim Peters wrote: On Windows 98, time.time() typically updates only once per 0.055 seconds (18.2 Hz), but time.clock() typically updates more than a million times per second. You do /not/ want to use time.time() for sub-second time measurement on Windows. Use time.clock() for this purpose