Reference manual for the hmstimer 0.3.0 R package, which tracks elapsed clock time using an hms::hms() scalar and was developed to time Bayesian model runs.
hmstimer is an R package distributed on CRAN by Poisson Consulting that tracks elapsed clock time using a hms::hms() scalar. Version 0.3.0 was published on August 19, 2024, and the package was originally developed to time Bayesian model runs. It depends on R 4.0 or later, imports the hms, lifecycle and rlang packages, and is licensed under MIT.
This reference manual documents the package's functions with usage, arguments and runnable examples. It covers creating a timer with tmr_timer(), starting and stopping it with tmr_start() and tmr_stop(), reading elapsed time with tmr_elapsed(), and helpers such as tmr_format(), tmr_round(), tmr_floor(), tmr_ceiling(), tmr_reset() and tmr_title(). The with_timer() and local_timer() functions time a block of R code.
| Version | 0.3.0 |
|---|---|
| R dependency | R (>= 4.0) |
| Imports | hms, lifecycle, rlang |
| License | MIT + file LICENSE |
| Repository | CRAN |
| Publication date | 2024-08-19 |
It tracks elapsed clock time using a hms::hms() scalar and was originally developed to time Bayesian model runs.
The package depends on R 4.0 or later.
No, the package code adds a small time cost, so it should not be used to estimate how long extremely fast code takes to execute.
Joe Thorley is the maintainer, and the package is published on CRAN under the MIT license.