tock | R Documentation |
Stop timer and write the computation in seconds since the last call of tick().
tock(txt = "", fmt = " (%.2fs). %s\n")
txt |
custom text to be displayed |
fmt |
character vector of format strings. It must contain exactly one %s as placeholder for |
Returns the elapsed time in seconds since calling tick().
Danail Obreschkow
tick
tick('Sum 10 million random numbers')
x = sum(runif(1e7))
tock()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.