powered by
Start a nested timer with an optional message
logging_start_timer(msg, echo = TRUE, indentation_text = " ")
(character(1)) Logging message
character(1)
(logical(1), default TRUE) Should the message be written to screen?
logical(1)
(character(1), default " ") Text that will be repeated at the beginning of the message for each layer of indentation
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