Description Usage Arguments Value Examples
Adds a summary of all times in RuntimeC
1 2 3 4 | summarizeRT(object, forceFinal)
## S3 method for class 'RuntimeC'
summarizeRT(object, forceFinal = FALSE)
|
object |
RuntimeC-object |
forceFinal |
Forces adding the summary and calculating the relative times |
object with 2 summary rows and all rows hold the scripttime of the rownames()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.