Lines Matching refs:delta_ms
318 uint64_t delta_ms = just_now_ms - wakelock_stats.last_acquired_timestamp_ms; in update_wakelock_released_stats() local
319 if (delta_ms < wakelock_stats.min_acquired_interval_ms || in update_wakelock_released_stats()
321 wakelock_stats.min_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
323 if (delta_ms > wakelock_stats.max_acquired_interval_ms) { in update_wakelock_released_stats()
324 wakelock_stats.max_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
326 wakelock_stats.last_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
327 wakelock_stats.total_acquired_interval_ms += delta_ms; in update_wakelock_released_stats()
339 uint64_t delta_ms = 0; in wakelock_debug_dump() local
346 delta_ms = just_now_ms - wakelock_stats.last_acquired_timestamp_ms; in wakelock_debug_dump()
347 if (delta_ms > max_interval_ms) max_interval_ms = delta_ms; in wakelock_debug_dump()
348 if (delta_ms < min_interval_ms) min_interval_ms = delta_ms; in wakelock_debug_dump()
349 last_interval_ms = delta_ms; in wakelock_debug_dump()
352 wakelock_stats.total_acquired_interval_ms + delta_ms; in wakelock_debug_dump()