Learn R Programming

data.table (version 1.12.0)

timetaken: Pretty print of time taken

Description

Pretty print of time taken since last started.at.

Usage

timetaken(started.at)

Arguments

started.at

The result of proc.time() taken some time earlier.

Value

A character vector of the form HH:MM:SS, or SS.MMMsec if under 60 seconds.

Examples

Run this code
# NOT RUN {
started.at=proc.time()
Sys.sleep(1)
cat("Finished in",timetaken(started.at),"\n")
# }

Run the code above in your browser using DataLab