Tic-toc logging
Arguments
- ...
passed to
log_level()
- level
see
log_levels()
- namespace
x
Examples
log_tictoc("warming up")
#> INFO [2025-01-15 11:04:55] global timer tic 0 secs -- warming up
Sys.sleep(0.1)
log_tictoc("running")
#> INFO [2025-01-15 11:04:55] global timer toc 0.1 secs -- running
Sys.sleep(0.1)
log_tictoc("running")
#> INFO [2025-01-15 11:04:55] global timer toc 0.1 secs -- running
Sys.sleep(runif(1))
log_tictoc("and running")
#> INFO [2025-01-15 11:04:56] global timer toc 0.93 secs -- and running