time_it {decorators} | R Documentation |
Measure Execution Time of Functions
Description
Wrap a function with a timer.
Usage
time_it(func, units = "auto", digits = 2)
Arguments
func |
( |
units |
( |
digits |
( |
Value
(closure
) An object that contains the original function bound to the environment of the decorator.
References
Examples
Sys.sleep <- time_it(base::Sys.sleep)
Sys.sleep(0.1)
[Package decorators version 0.3.0 Index]