Skip to contents

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

if (FALSE) { # \dontrun{
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")
} # }