gettime: gettime calculates time in seconds passed each day

View source: R/rutils.R

gettimeR 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.

Usage

gettime()

Value

the time in seconds from the start of a day

Examples

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

## End(Not run)

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.