From maechler at stat.math.ethz.ch  Mon Aug  1 15:09:23 2005
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Mon, 1 Aug 2005 15:09:23 +0200
Subject: [Rd] Most accurate timing?
In-Reply-To: <42EE1A27.7050803@stats.uwo.ca>
References: <42EE1A27.7050803@stats.uwo.ca>
Message-ID: <17134.7939.686794.549905@stat.math.ethz.ch>

>>>>> "Duncan" == Duncan Murdoch <murdoch at stats.uwo.ca>
>>>>>     on Mon, 01 Aug 2005 08:48:39 -0400 writes:

    Duncan> For a graphics display, I'd like a high resolution
    Duncan> timer, something like Sys.time(), but it is only
    Duncan> accurate to a second.  Is there a clock in R that
    Duncan> gives a finer value?

Why can't use  proc.time()  ?

It's help file says

     The resolution of the times will be system-specific; it is
     common for them to be recorded to of the order of 1/100
     second, and elapsed time is rounded to the nearest 1/100.

Martin Maechler



[Rd] Most accurate timing?
Martin Maechler