gettime {MQMF}R Documentation

gettime calculates time in seconds passed each day

Description

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.

Usage

gettime()

Value

the time in seconds from the start of a day

Examples

  begin <- gettime()
  for (i in 1:1e6) sqrt(i)
  finish <- gettime()
  print(finish - begin)

[Package MQMF version 0.1.5 Index]