accumulatedTrueDuration

fun accumulatedTrueDuration(unit: Duration): Real

Creates a Real profile corresponding to the running total of time that this profile has spent true.

Parameters

unit

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

See also

for further explanation of unit.