Learn R Programming

logger (version 0.4.0)

log_tictoc: Tic-toc logging

Description

Tic-toc logging

Usage

log_tictoc(..., level = INFO, namespace = NA_character_)

Arguments

...

passed to log_level

level

see log_levels()

namespace

x

Author

Thanks to Neal Fultz for the idea and original implementation!

Examples

Run this code
log_tictoc("warming up")
Sys.sleep(0.1)
log_tictoc("running")
Sys.sleep(0.1)
log_tictoc("running")
Sys.sleep(runif(1))
log_tictoc("and running")

Run the code above in your browser using DataLab