elapsed_time: Return elapsed time

Description Usage Arguments Value Examples

View source: R/elapsed_time.R

Description

Given a start and end time in seconds, returns elapsed time in sec., min. or hrs, as appropriate.

Usage

1
elapsed_time(t0, t1)

Arguments

t0

Numeric start time representing seconds. No default.

t1

Numeric end time representing continuous second count from t0. No default.

Value

String containing elapsed time.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
start <- proc.time()[3]
end <- proc.time()[3]
elapsed_time(t0=start, t1=end)

start <- proc.time()
elapsed_time(start[3], proc.time()[3])

## End(Not run)

hochwagenlab/hwglabr2 documentation built on Jan. 31, 2020, 11:05 a.m.