Learn R Programming

mbg (version 1.1.0)

logging_start_timer: Start logging timer

Description

Start a nested timer with an optional message

Usage

logging_start_timer(msg, echo = TRUE, indentation_text = "  ")

Arguments

msg

(character(1)) Logging message

echo

(logical(1), default TRUE) Should the message be written to screen?

indentation_text

(character(1), default " ") Text that will be repeated at the beginning of the message for each layer of indentation

Examples

Run this code
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