Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


fuzzySim (version 4.33)

timer: Timer

Description

Reporting of time elapsed since a given start time. This function is used internally by other functions in the package.

Usage

timer(start.time)

Value

The function returns a message informing of the time elapsed since the input 'start.time'.

Arguments

start.time

A date-time object of class POSIXct, e.g. as given by Sys.time.

Author

A. Marcia Barbosa

See Also

Examples

Run this code
# get starting time:
start <- Sys.time()

# do some random analysis:
sapply(rnorm(50000), function(x) x*5)

# see how long it took:
timer(start)

Run the code above in your browser using DataLab