dtime: Timer (compute time difference).

View source: R/bruceR_utils.R

dtimeR Documentation

Timer (compute time difference).

Description

Timer (compute time difference).

Usage

dtime(t0, unit = "secs", digits = 0)

Arguments

t0

Time at the beginning.

unit

Options: "auto", "secs", "mins", "hours", "days", "weeks". Defaults to "secs".

digits

Number of decimal places of output. Defaults to 0.

Value

A character string of time difference.

Examples

## Not run: 

t0 = Sys.time()
dtime(t0)

## End(Not run)


bruceR documentation built on June 22, 2024, 12:26 p.m.