int64_t Sleep_average(const struct sleep_coll_s *coll)
Returns the average sleep time in nanoseconds from the given sleep collector. This is calculated by s...
Definition sleep.c:50
void Sleep_do(struct sleep_coll_s *coll, uint32_t ms)
Sleeps for the given number of milliseconds using incremental sleep calls that estimate the time rema...
Definition sleep.c:111
int Sleep_init(struct sleep_coll_s **coll)
Allocates and initializes a new sleep collector with default values.
Definition sleep.c:30
Sleep collector structure for providing historical sleep performance data to better estimate sleep ti...
Definition sleep.c:24