• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_
18