Description Usage Arguments Value Examples
This function returns the time needed for a function to run in milliseconds.
1 | timer_func(expr)
|
expr |
Type: any expression. An expression to evalutate (the expression you want to benchmark). |
The time needed for a function to run in milliseconds.
1 2 | library(R.utils)
timer_func({for (i in 1:100) {cat(i, " ")}})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.