getTotalDuration

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

Returns total sleep duration (includes duration of awakes) in specified time units.

Return

total sleep duration in specified time units

Parameters

units

time units of resulted sleep duration.