1 | #pragma once |
---|---|
2 | |
3 | #include <cstdint> |
4 | |
5 | /** |
6 | * Sleep functions tolerant to signal interruptions (which can happen |
7 | * when query profiler is turned on for example) |
8 | */ |
9 | |
10 | void sleepForNanoseconds(uint64_t nanoseconds); |
11 | |
12 | void sleepForMicroseconds(uint64_t microseconds); |
13 | |
14 | void sleepForMilliseconds(uint64_t milliseconds); |
15 | |
16 | void sleepForSeconds(uint64_t seconds); |
17 |