xref: /aosp_15_r20/external/libcxx/utils/google-benchmark/src/sleep.h (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1*58b9f456SAndroid Build Coastguard Worker #ifndef BENCHMARK_SLEEP_H_
2*58b9f456SAndroid Build Coastguard Worker #define BENCHMARK_SLEEP_H_
3*58b9f456SAndroid Build Coastguard Worker 
4*58b9f456SAndroid Build Coastguard Worker namespace benchmark {
5*58b9f456SAndroid Build Coastguard Worker const int kNumMillisPerSecond = 1000;
6*58b9f456SAndroid Build Coastguard Worker const int kNumMicrosPerMilli = 1000;
7*58b9f456SAndroid Build Coastguard Worker const int kNumMicrosPerSecond = kNumMillisPerSecond * 1000;
8*58b9f456SAndroid Build Coastguard Worker const int kNumNanosPerMicro = 1000;
9*58b9f456SAndroid Build Coastguard Worker const int kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond;
10*58b9f456SAndroid Build Coastguard Worker 
11*58b9f456SAndroid Build Coastguard Worker void SleepForMilliseconds(int milliseconds);
12*58b9f456SAndroid Build Coastguard Worker void SleepForSeconds(double seconds);
13*58b9f456SAndroid Build Coastguard Worker }  // end namespace benchmark
14*58b9f456SAndroid Build Coastguard Worker 
15*58b9f456SAndroid Build Coastguard Worker #endif  // BENCHMARK_SLEEP_H_
16