Re: [Rd] Most accurate timing?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon 01 Aug 2005 - 14:00:45 GMT

On 8/1/2005 9:09 AM, Martin Maechler wrote:

>>>>>> "Duncan" == Duncan Murdoch <murdoch@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.
>

proc.time()[3] is what I want; I had forgotten about it.

Duncan Murdoch



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Aug 02 00:04:38 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:32 GMT