log_tictoc: Tic-toc logging

View source: R/helpers.R

log_tictocR Documentation

Tic-toc logging

Description

Tic-toc logging

Usage

log_tictoc(..., level = INFO, namespace = NA_character_)

Arguments

...

passed to log_level

level

see log_levels()

namespace

x

Author(s)

Thanks to Neal Fultz for the idea and original implementation!

Examples

log_tictoc("warming up")
Sys.sleep(0.1)
log_tictoc("running")
Sys.sleep(0.1)
log_tictoc("running")
Sys.sleep(runif(1))
log_tictoc("and running")

daroczig/logger documentation built on Oct. 22, 2024, 12:25 p.m.