aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-13 09:16:03 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-13 09:16:03 -0700
commit354398f9f5191bb44198b94e1828eafb60de5a67 (patch)
tree716e16fa3c813b5b02344eba8e341c27fd40840c /src/cpp/util
parent75cfb044f3c5582a50582c375b443ee4ab029c33 (diff)
Updating wrapped languages to new time functions
Diffstat (limited to 'src/cpp/util')
-rw-r--r--src/cpp/util/time.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/util/time.cc b/src/cpp/util/time.cc
index 99b857a428..a814cad452 100644
--- a/src/cpp/util/time.cc
+++ b/src/cpp/util/time.cc
@@ -59,6 +59,7 @@ void Timepoint2Timespec(const system_clock::time_point& from,
nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs);
to->tv_sec = secs.count();
to->tv_nsec = nsecs.count();
+ to->clock_type = GPR_CLOCK_REALTIME;
}
void TimepointHR2Timespec(const high_resolution_clock::time_point& from,
@@ -74,6 +75,7 @@ void TimepointHR2Timespec(const high_resolution_clock::time_point& from,
nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs);
to->tv_sec = secs.count();
to->tv_nsec = nsecs.count();
+ to->clock_type = GPR_CLOCK_REALTIME;
}
system_clock::time_point Timespec2Timepoint(gpr_timespec t) {