getDuration

fun getDuration(units: TimeUnit = TimeUnit.MINUTES): Long

Returns current stress state duration in specified units. Default units: TimeUnit.MINUTES.

Return

current stress state duration in specified units

Parameters

units

what units of time to return current stress state duration