dtime: Timer (compute time difference).

Description Usage Arguments Value Examples

View source: R/bruceR_basic.R

Description

Timer (compute time difference).

Usage

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

Arguments

t0

Time at the beginning.

unit

Options: "auto", "secs", "mins", "hours", "days", "weeks". Default is "secs".

digits, nsmall

Number of decimal places of output. Default is 0.

Value

A character string of time difference.

Examples

1
2
t0=Sys.time()
dtime(t0)

bruceR documentation built on June 22, 2021, 1:06 a.m.