mirror of
https://github.com/nlohmann/json.git
synced 2026-05-03 21:05:23 +00:00
06731b14d7
- Catch 1.12.0 -> 1.12.2 - Google Benchmark 1.3.0 -> 1.4.1
16 lines
465 B
C++
Executable File
16 lines
465 B
C++
Executable File
#ifndef BENCHMARK_SLEEP_H_
|
|
#define BENCHMARK_SLEEP_H_
|
|
|
|
namespace benchmark {
|
|
const int kNumMillisPerSecond = 1000;
|
|
const int kNumMicrosPerMilli = 1000;
|
|
const int kNumMicrosPerSecond = kNumMillisPerSecond * 1000;
|
|
const int kNumNanosPerMicro = 1000;
|
|
const int kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond;
|
|
|
|
void SleepForMilliseconds(int milliseconds);
|
|
void SleepForSeconds(double seconds);
|
|
} // end namespace benchmark
|
|
|
|
#endif // BENCHMARK_SLEEP_H_
|