timetaken: Pretty print of time taken

Description Usage Arguments Value Examples

Description

Pretty print of time taken since last started.at.

Usage

1
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.mmm if under 60 seconds.

Examples

1
2
3
started.at=proc.time()
Sys.sleep(1)
cat("Finished in",timetaken(started.at),"\n")

Example output

Finished in 1.005sec 

data.table documentation built on May 2, 2019, 4:57 p.m.