Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dtime

Timer (compute time difference).


Description

Timer (compute time difference).

Usage

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

Arguments

t0

Time at the beginning.

unit

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

nsmall

Number of decimal places of output. Default is 0.

Value

A character string of time difference.

Examples

t0=Sys.time()
dtime(t0)

bruceR

Broadly Useful Convenient and Efficient R Functions

v0.6.2
GPL-3
Authors
Han-Wu-Shuang Bao [aut, cre]
Initial release
2021-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.