1 #ifndef BENCHMARK_SLEEP_H_
2 #define BENCHMARK_SLEEP_H_
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;
13 void SleepForMilliseconds(int milliseconds);
14 void SleepForSeconds(double seconds);
15 } // end namespace benchmark
17 #endif // BENCHMARK_SLEEP_H_