ClickHouse/libs/libcommon/include/common/sleep.h
Nikita Lapkov 9d540abc84 refactor
2019-07-10 20:47:39 +00:00

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);