| Chronometer | R Documentation |
R6 object that mimics a chronometer. It can be started, paused, record legs and stopped.
show()Display the values stored in this chronometer object.
Chronometer$show()
reset()Reset the chronometer.
Chronometer$reset()
start()Start the chronometer
Chronometer$start()
stop()Stop the chronometer
Chronometer$stop(leg.name = NULL)
leg.name(optional) Name for the stopped leg.
record.leg()Record a leg time. The chronometer will continue running.
Chronometer$record.leg(leg.name = NULL)
leg.nameName for the recorded leg.
get.chronometer.data()Like show method, but more rudimentary.
Chronometer$get.chronometer.data()
get.total.time()Return the total time span between start and stop.
Chronometer$get.total.time(force = FALSE)
forceBoolean variable. If TRUE, avoids error when calling
this function while chronometer has not been stopped yet.
accumulate.legs()Return total time spent per leg category (using leg names).
Chronometer$accumulate.legs(force = FALSE)
forceforce Boolean variable. If TRUE, avoids error when calling
this function while chronometer has not been stopped yet.
clone()The objects of this class are cloneable with this method.
Chronometer$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.