about summary refs log tree commit diff
path: root/absl/time
diff options
context:
space:
mode:
authorLoo Rong Jie <loorongjie@gmail.com>2017-11-28T05·36+0800
committerLoo Rong Jie <loorongjie@gmail.com>2017-11-28T05·36+0800
commit79ae60ed9737f6c0ec652eab5492b1359aaea9cf (patch)
tree95f1895b0824990b7204d37618739c62655fba18 /absl/time
parent79610733f46c888b56d05d7ca981350655c55a5d (diff)
MSVC fixes
Diffstat (limited to 'absl/time')
-rw-r--r--absl/time/clock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/time/clock.cc b/absl/time/clock.cc
index 6398170d0d1a..9f2e0781868a 100644
--- a/absl/time/clock.cc
+++ b/absl/time/clock.cc
@@ -510,7 +510,7 @@ namespace {
 // Returns the maximum duration that SleepOnce() can sleep for.
 constexpr absl::Duration MaxSleep() {
 #ifdef _WIN32
-  // Windows _sleep() takes unsigned long argument in milliseconds.
+  // Windows Sleep() takes unsigned long argument in milliseconds.
   return absl::Milliseconds(
       std::numeric_limits<unsigned long>::max());  // NOLINT(runtime/int)
 #else
@@ -522,7 +522,7 @@ constexpr absl::Duration MaxSleep() {
 // REQUIRES: to_sleep <= MaxSleep().
 void SleepOnce(absl::Duration to_sleep) {
 #ifdef _WIN32
-  _sleep(to_sleep / absl::Milliseconds(1));
+  Sleep(to_sleep / absl::Milliseconds(1));
 #else
   struct timespec sleep_time = absl::ToTimespec(to_sleep);
   while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {