mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
17 lines
356 B
C++
17 lines
356 B
C++
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
/**
|
||
|
* Sleep functions tolerant to signal interruptions (which can happen
|
||
|
* when query profiler is turned on for example)
|
||
|
*/
|
||
|
|
||
|
void sleepForNanoseconds(uint64_t nanoseconds);
|
||
|
|
||
|
void sleepForMicroseconds(uint64_t microseconds);
|
||
|
|
||
|
void sleepForMilliseconds(uint64_t milliseconds);
|
||
|
|
||
|
void sleepForSeconds(uint64_t seconds);
|