powered by
Pretty print of time taken since last started.at.
timetaken(started.at)
A character vector of the form HH:MM:SS, or SS.MMMsec if under 60 seconds.
The result of proc.time() taken some time earlier.
started.at=proc.time() Sys.sleep(1) cat("Finished in",timetaken(started.at),"\n")
Run the code above in your browser using DataLab