Re: interpreting the fractional portion of time.clock() vs time.time(0measurements

Discussion in 'Python' started by Peter Hansen, Feb 22, 2006.

  1. Peter Hansen

    Peter Hansen Guest

    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.
    Peter Hansen, Feb 22, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Valentin Tihomirov

    Are clock and divided clock synchronous?

    Valentin Tihomirov, Oct 23, 2003, in forum: VHDL
    Replies:
    11
    Views:
    3,278
    louis lin
    Oct 28, 2003
  2. Martin Maurer
    Replies:
    3
    Views:
    4,823
    Peter
    Apr 19, 2006
  3. Replies:
    4
    Views:
    710
    Peter Alfke
    Apr 27, 2006
  4. Peter Hansen
    Replies:
    0
    Views:
    712
    Peter Hansen
    Feb 22, 2006
  5. Chris Rebert
    Replies:
    0
    Views:
    491
    Chris Rebert
    Jan 6, 2009
Loading...

Share This Page