aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/time_posix.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-19 22:21:41 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-19 22:21:41 -0700
commit6a7626c98fbd2c013553a91f8ab7bf01afeedd3e (patch)
tree4ee45fb56fdf148d4cfc9ca2ae25f2b01fe5aaa9 /src/core/support/time_posix.c
parentf08b067cdbb4000cd997f1aa0641b97db16ebaf8 (diff)
Move alarm subsystem to monotonic time
Diffstat (limited to 'src/core/support/time_posix.c')
-rw-r--r--src/core/support/time_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/time_posix.c b/src/core/support/time_posix.c
index 258b2e640e..841485c4b4 100644
--- a/src/core/support/time_posix.c
+++ b/src/core/support/time_posix.c
@@ -120,7 +120,7 @@ void gpr_sleep_until(gpr_timespec until) {
for (;;) {
/* We could simplify by using clock_nanosleep instead, but it might be
* slightly less portable. */
- now = gpr_now(GPR_CLOCK_REALTIME);
+ now = gpr_now(until.clock_type);
if (gpr_time_cmp(until, now) <= 0) {
return;
}