gettime | R Documentation |
gettime is a function designed to facilitate the measurement of time between intervals within R software that are expected to take a maximum of hours. It calculates the time as seconds elapsed from the start of each day. As long as the timing of events does not pass from one day to the next accurate results will be generated. To measure the time taken one would store an initial value that would be subtracted from a final value.
gettime()
the time in seconds from the start of a day
begin <- gettime()
for (i in 1:1e6) sqrt(i)
finish <- gettime()
print(finish - begin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.