getTimer: Get the data frame in timer object

Description Usage Arguments Value Examples

View source: R/timer_function.R

Description

timer object has a built-in data frame that contains all timings. run this function to extract the data frame.

Usage

1
getTimer(object)

Arguments

object

The name for timer object.

Value

A data frame containing all records of a timer object.

Examples

1
2
3
4
5
timer1 <- createTimer()
timer1$start("event1")
Sys.sleep(1)
timer1$stop("event1")
getTimer(timer1)

yusuzech/timeR documentation built on June 24, 2020, 6:02 a.m.