Poisson Consulting hmstimer 0.3.0 R Time Tracking Package Reference Manual

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.


Poisson Consulting hmstimer 0.3.0 R Time Tracking Package Reference Manual - cover page
Brand
Poisson Consulting
Category
Programming
Document type
Programming Manual
Language
English
Pages
16
File format
PDF
File size
118 KB
Published
09 November, 2026
Updated
09 November, 2026
MD5 checksum
147833F4AE289475885FCC73BA910AB2

About this manual

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.

What's inside

  • hms_timer
  • local_timer
  • tmr_timer
  • tmr_start
  • tmr_stop
  • tmr_elapsed
  • tmr_format
  • tmr_reset
  • tmr_title
  • with_timer

Specifications

Version0.3.0
R dependencyR (>= 4.0)
Importshms, lifecycle, rlang
LicenseMIT + file LICENSE
RepositoryCRAN
Publication date2024-08-19

Frequently asked questions

What does the hmstimer package do?

It tracks elapsed clock time using a hms::hms() scalar and was originally developed to time Bayesian model runs.

Which R version does hmstimer require?

The package depends on R 4.0 or later.

Can hmstimer be used to time extremely fast code?

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.

Who maintains the hmstimer package?

Joe Thorley is the maintainer, and the package is published on CRAN under the MIT license.

Download PDF (118 KB)