sleptSince method

int sleptSince(
  1. DateTime since
)

Wall-clock milliseconds the machine slept since since, found by the one-second tick.

Implementation

int sleptSince(DateTime since) => _sleeps.where((s) => !s.at.isBefore(since)).fold(0, (a, s) => a + s.ms);