mirror of
https://github.com/google/benchmark.git
synced 2025-01-16 23:00:18 +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) {
|
void SleepForSeconds(double seconds) {
|
||||||
SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds));
|
SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds));
|
||||||
}
|
}
|
||||||
#else // OS_WINDOWS
|
#else // BENCHMARK_OS_WINDOWS
|
||||||
void SleepForMicroseconds(int microseconds) {
|
void SleepForMicroseconds(int microseconds) {
|
||||||
struct timespec sleep_time;
|
struct timespec sleep_time;
|
||||||
sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
|
sleep_time.tv_sec = microseconds / kNumMicrosPerSecond;
|
||||||
@ -46,5 +46,5 @@ void SleepForMilliseconds(int milliseconds) {
|
|||||||
void SleepForSeconds(double seconds) {
|
void SleepForSeconds(double seconds) {
|
||||||
SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
|
SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
|
||||||
}
|
}
|
||||||
#endif // OS_WINDOWS
|
#endif // BENCHMARK_OS_WINDOWS
|
||||||
} // end namespace benchmark
|
} // end namespace benchmark
|
||||||
|
Loading…
Reference in New Issue
Block a user