fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
sleep.h
Go to the documentation of this file.
1
3#ifndef FPLAYER_SLEEP_H
4#define FPLAYER_SLEEP_H
5
6#include <stdint.h>
7
8struct sleep_coll_s;
9
13int Sleep_init(struct sleep_coll_s** coll);
14
20int64_t Sleep_average(const struct sleep_coll_s* coll);
21
28void Sleep_do(struct sleep_coll_s* coll, uint32_t ms);
29
30#endif//FPLAYER_SLEEP_H
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