View source: R/decorator-time_it.R
time_it | R Documentation |
Wrap a function with a timer.
time_it(func, units = "auto", digits = 2)
func |
( |
units |
( |
digits |
( |
(closure
) An object that contains the original function bound to the environment of the decorator.
Sys.sleep <- time_it(base::Sys.sleep) Sys.sleep(0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.