Learn R Programming

timeR (version 1.2.0)

getTimer: Get the data frame in timer object

Description

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

Usage

getTimer(object)

Arguments

object

The name for timer object.

Value

A data frame containing all records of a timer object.

Examples

Run this code
# NOT RUN {
timer1 <- createTimer()
timer1$start("event1")
Sys.sleep(1)
timer1$stop("event1")
getTimer(timer1)
# }

Run the code above in your browser using DataLab