13 lines
250 B
C++
13 lines
250 B
C++
#ifndef _SLEEP_HH_
|
|
#define _SLEEP_HH_
|
|
|
|
#include <cstdint>
|
|
|
|
// "busy" sleep for at least 'us' microseconds with microsecond granularity
|
|
void usleep(uint32_t us);
|
|
|
|
// Sleep with yield, at least 10 ms, 10 ms granularity
|
|
void sleep(unsigned ms);
|
|
|
|
#endif
|