Skip to contents

Time spent on a function

Usage

s_time(.x)

Arguments

.x

The function

Value

The function output

Examples

x <- seq_len(1e6)
mean(x) %>% s_time()
#> Time spent: 0.007 secs