powered by
This function measures the computation time of a call.
do.call_timed(what, args, units = "secs")
A list of the two elements "result" (the results of the do.call
"result"
do.call
call) and "time" (the computation time).
"time"
Passed to do.call.
Passed to difftime.
difftime
This function is a wrapper for do.call.
Other function helpers: function_arguments(), function_body(), function_defaults(), quiet(), timed(), try_silent(), variable_name()
function_arguments()
function_body()
function_defaults()
quiet()
timed()
try_silent()
variable_name()
if (FALSE) { what <- function(s) { Sys.sleep(s) return(s) } args <- list(s = 1) do.call_timed(what = what, args = args) }
Run the code above in your browser using DataLab