Description Usage Arguments Examples
Compared to data.table::timetaken()
, this version doesn't require the user
to store the value of base::proc.time()
explicitly. Instead, the first call in a
new session will store the value of proc.time automatically. Or you can call the
function with param TRUE
to reset the stored proc.time value, afterwards.
1 | time_taken(reset = FALSE)
|
reset |
When |
1 2 3 | time_taken()
Sys.sleep(1)
cat("Finished in",time_taken(),"\n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.