Skip to contents

Used in conjunction with tic() to find the elapsed time when code is executed.

Usage

toc()

Value

time in seconds since tic() was called

See also

Examples

tic()
Sys.sleep(3)
toc()
#> elapsed 
#>   3.006