summarizeRT: Finalize the RuntimeC-Object

Description Usage Arguments Value Examples

View source: R/easytimingr.R

Description

Adds a summary of all times in RuntimeC

Usage

1
2
3
4
summarizeRT(object, forceFinal)

## S3 method for class 'RuntimeC'
summarizeRT(object, forceFinal = FALSE)

Arguments

object

RuntimeC-object

forceFinal

Forces adding the summary and calculating the relative times

Value

object with 2 summary rows and all rows hold the scripttime of the rownames()

Examples

1
2
3
4
5
6
7
8
library(basicscriptsGG)
rt_object <- RuntimeC()
rt_object <- add.timepoint(rt_object, "useless", proc.time()-proc.time())	# add new timepoint (with zero time)
t1 <- proc.time()
Sys.sleep(1)		# someFunction
t2 <- proc.time()
rt_object <- add.timepoint(rt_object, "someFunction", t2-t1)	# add new timepoint (with zero time)
rt_object <- summarizeRT(rt_object)	# subtract the first for (starting point)

gugl58/basicscriptsGG-Package documentation built on May 17, 2019, 9:08 a.m.