mirror of
https://github.com/google/benchmark.git
synced 2024-12-29 14:00:16 +08:00
Update macro names in comments.
This commit is contained in:
parent
3c83ed5b47
commit
90e7cf000e
@ -30,7 +30,7 @@ void SleepForMilliseconds(int milliseconds) { Sleep(milliseconds); }
|
||||
void SleepForSeconds(double seconds) {
|
||||
SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds));
|
||||
}
|
||||
#else // OS_WINDOWS
|
||||
#else // BENCHMARK_OS_WINDOWS
|
||||
void SleepForMicroseconds(int microseconds) {
|
||||
struct timespec sleep_time;
|
||||
sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
|
||||
@ -46,5 +46,5 @@ void SleepForMilliseconds(int milliseconds) {
|
||||
void SleepForSeconds(double seconds) {
|
||||
SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
|
||||
}
|
||||
#endif // OS_WINDOWS
|
||||
#endif // BENCHMARK_OS_WINDOWS
|
||||
} // end namespace benchmark
|
||||
|
Loading…
Reference in New Issue
Block a user