logging_get_timer_log: Get timer log

View source: R/logging.R

logging_get_timer_logR Documentation

Get timer log

Description

Return a log of all timed events as a data.table

Usage

logging_get_timer_log(clear_log = FALSE, deindent = TRUE)

Arguments

clear_log

(logical(1), default FALSE) Should the log be cleared afterwards?

deindent

(logical(1), default TRUE) Should leading whitespace be removed from timer messages?

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.