getTotalTimeInBed

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

Returns total time in bed (sleep duration with duration of awakes) for the day in specified time units. Default units: TimeUnit.MINUTES.

Return

total time in bed for the day in specified time units

Parameters

units

what units of time to return sleep duration