getDuration

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

Returns sleep duration that doesn't includes awakesDuration in specified time units.

Return

sleep duration in specified time units

Parameters

units

time units of resulted sleep duration.