Learn R Programming

datautils (version 0.1.5)

getElapsed:

Description

return the decimal number of seconds elapsed since a reference timestamp.

Usage

getElapsed(stamp)

Arguments

stamp
timestamp of a reference.

Value

decimal number of seconds since reference timestamp.

See Also

getTimestamp

Examples

Run this code
stamp <- getTimestamp()
Sys.sleep(1)
stamp2 <- getElapsed(stamp)

Run the code above in your browser using DataLab