[R] Get current time in numeric form?
dmurdoch at pair.com
Tue Jan 23 13:45:25 CET 2001
As discussed in another thread, the date() function returns the
current date and time (possibly in the wrong time zone on Windows).
What I'm interested in getting is a value that I can do calculations
with, to support animations. That is, I'd like to get the current
time, do a display, do some calculations, then get the current time
again and calculate the update to the display based on the time
Do I have to write my own external function, or is this already
available somewhere? (I could parse date(), but that will only give
me 1 second resolution; I think the system clock will do better on
(I know about system.time(), but I don't think it's quite appropriate:
I don't just want to know how long the first display calculation took,
I need to know the time at the start of the next one. I'm worried
that there will be slippage if I use system.time().)
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help