ClickHouse/base/common/time.h

10 lines
220 B
C++
Raw Normal View History

2020-02-17 14:27:09 +00:00
#pragma once
#include <time.h>
#if defined (OS_DARWIN) || defined (OS_SUNOS)
2020-02-17 14:27:09 +00:00
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#elif defined (OS_FREEBSD)
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST
2020-02-17 14:27:09 +00:00
#endif