powered by
Return a log of all timed events as a data.table
logging_get_timer_log(clear_log = FALSE, deindent = TRUE)
(logical(1), default FALSE) Should the log be cleared afterwards?
logical(1)
(logical(1), default TRUE) Should leading whitespace be removed from timer messages?
mbg::logging_start_timer(msg = 'Test logging') Sys.sleep(0.1) mbg::logging_stop_timer() log_results <- mbg::logging_get_timer_log() print(log_results)
Run the code above in your browser using DataLab