]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - utils/google-benchmark/src/sleep.h
Vendor import of libc++ trunk r290819:
[FreeBSD/FreeBSD.git] / utils / google-benchmark / src / sleep.h
1 #ifndef BENCHMARK_SLEEP_H_
2 #define BENCHMARK_SLEEP_H_
3
4 #include <cstdint>
5
6 namespace benchmark {
7 const int64_t kNumMillisPerSecond = 1000LL;
8 const int64_t kNumMicrosPerMilli = 1000LL;
9 const int64_t kNumMicrosPerSecond = kNumMillisPerSecond * 1000LL;
10 const int64_t kNumNanosPerMicro = 1000LL;
11 const int64_t kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond;
12
13 void SleepForMilliseconds(int milliseconds);
14 void SleepForSeconds(double seconds);
15 }  // end namespace benchmark
16
17 #endif  // BENCHMARK_SLEEP_H_