time_that: Returns the run time for a given expression.

Description Usage Arguments Value Examples

View source: R/time_that.R

Description

Returns the run time for a given expression.

Usage

1
time_that(expr, units = "secs")

Arguments

expr

Expression to time, contained within brackets

units

Units to compute the run time

Value

Any assignments and the runtime

Examples

1
time_that(sum(rnorm(150)), units = 'secs')

ConGibbs10/utilsGibbs documentation built on Jan. 7, 2022, 1:03 p.m.