accumulatedDuration

open fun accumulatedDuration(unit: Duration): Real

(DOC) Creates a Real profile corresponding to the running total of time that this timeline has had an active object.

Parameters

unit

base unit of time to count. As in, the resulting real profile will increase by 1 for each unit duration spent in a payload object.

See also

for further explanation of unit.