timer_func: Get Function Time in Milliseconds

Description Usage Arguments Value Examples

Description

This function returns the time needed for a function to run in milliseconds.

Usage

1
timer_func(expr)

Arguments

expr

Type: any expression. An expression to evalutate (the expression you want to benchmark).

Value

The time needed for a function to run in milliseconds.

Examples

1
2
library(R.utils)
timer_func({for (i in 1:100) {cat(i, " ")}})

Laurae2/Laurae documentation built on May 8, 2019, 7:59 p.m.