Learn R Programming

logger (version 0.2.2)

log_tictoc: Tic-toc logging

Description

Tic-toc logging

Usage

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

Arguments

...

passed to log_level

level

x

namespace

x

Author

Thanks to Neal Fultz for the idea and original implementation!

Examples

Run this code
if (FALSE) {
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