logging_start_timer: Start logging timer

View source: R/logging.R

logging_start_timerR Documentation

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

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)


mbg documentation built on April 4, 2025, 2:06 a.m.