Update macro names in comments.

This commit is contained in:
Dominic Hamon 2015-10-12 09:50:01 -07:00
parent 3c83ed5b47
commit 90e7cf000e

View File

@ -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