Mercurial > hg > CbC > CbC_llvm
comparison libcxx/utils/google-benchmark/src/sleep.h @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 #ifndef BENCHMARK_SLEEP_H_ | |
2 #define BENCHMARK_SLEEP_H_ | |
3 | |
4 namespace benchmark { | |
5 const int kNumMillisPerSecond = 1000; | |
6 const int kNumMicrosPerMilli = 1000; | |
7 const int kNumMicrosPerSecond = kNumMillisPerSecond * 1000; | |
8 const int kNumNanosPerMicro = 1000; | |
9 const int kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond; | |
10 | |
11 void SleepForMilliseconds(int milliseconds); | |
12 void SleepForSeconds(double seconds); | |
13 } // end namespace benchmark | |
14 | |
15 #endif // BENCHMARK_SLEEP_H_ |