do.call_timed {oeli} | R Documentation |
Measure computation time
Description
This function measures the computation time of a do.call
call.
Usage
do.call_timed(what, args, units = "secs")
Arguments
what |
Passed to |
args |
Passed to |
units |
Passed to |
Details
This function is a wrapper for do.call
.
Value
A list of the two elements "result"
(the results of the do.call
call) and "time"
(the computation time).
Examples
## Not run:
what <- function(s) {
Sys.sleep(s)
return(s)
}
args <- list(s = 1)
do.call_timed(what = what, args = args)
## End(Not run)
[Package oeli version 0.5.2 Index]