1#ifndef BENCHMARK_SLEEP_H_
2#define BENCHMARK_SLEEP_H_
3
4#include <cstdint>
5
6namespace benchmark {
7const int64_t kNumMillisPerSecond = 1000LL;
8const int64_t kNumMicrosPerMilli = 1000LL;
9const int64_t kNumMicrosPerSecond = kNumMillisPerSecond * 1000LL;
10const int64_t kNumNanosPerMicro = 1000LL;
11const int64_t kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond;
12
13void SleepForMilliseconds(int milliseconds);
14void SleepForSeconds(double seconds);
15} // end namespace benchmark
16
17#endif // BENCHMARK_SLEEP_H_
18