Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: interpreting the fractional portion of time.clock() vs time.time(0measurements (http://www.velocityreviews.com/forums/t354721-re-interpreting-the-fractional-portion-of-time-clock-vs-time-time-0measurements.html)

Peter Hansen 02-22-2006 02:02 PM

Re: interpreting the fractional portion of time.clock() vs time.time(0measurements
 
john peter wrote:
> let's say i'm taking timing measurements in Windows XP
>
> t1 = time.clock()
> ...
> t2 = time.clock()
>
> t3 = t2 - t1 = say, 0.018
> what is the unit of measurement for t3? is it correct to say that t3 =
> 18 milliseconds?
> microsends?
>
> what if the timing function used for t1 and t2 was time.time()? is it
> still correct to say
> that t3 = 18 milliseconds? i kinda know that in Windows, time.clock()
> has higher
> resolution than time.time(), and all i need is millisecond resolution.
> which of these
> functions would be easier to translate into millisecond units of
> measurement?


This looks like a repost of a previous question, to which I already
posted an answer.



All times are GMT. The time now is 12:10 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57