> -----Original Message-----
> From: python-dev-bounces+kristjan=ccpgames....@python.org
> [mailto:python-dev-bounces+kristjan=ccpgames....@python.org] On Behalf
> Of Robert Collins
> >  I'd be very surprised if any applications rely on the fact that each
> > process starts counting at zero, so if someone can come up with a
> > high-res counter which avoids that artifact I'd expect it could be
> > used.
> 
> Could you offset it by the system time on the first call?
> 

Since system time has low granularity, it would negate our attemt at having 
time.clock() reflect the same time between processes.
In my opinion, the simplest way is to simply stop setting choosing the first 
call as a zero base, and use whatever arbitrary time the system has chosen for 
us.
The documentation could then read:
  "On Windows, this function returns wall-clock seconds elapsed since an
   arbitrary, system wited, epoch, as a floating point number, based on the
   Win32 function QueryPerformanceCounter. The resolution is typically better
   than one microsecond."

K

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to