Learn R Programming

bruceR (version 0.7.2)

dtime: Timer (compute time difference).

Description

Timer (compute time difference).

Usage

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

Run this code
# NOT RUN {
t0=Sys.time()
dtime(t0)

# }

Run the code above in your browser using DataLab