Mac, Windows support for new timespec

pull/2403/head
Craig Tiller 10 years ago
parent 677c50c92a
commit 21038ce1d4
  1. 1
      src/core/support/time_posix.c
  2. 1
      src/core/support/time_win32.c

@ -92,6 +92,7 @@ gpr_timespec gpr_now(gpr_clock_type clock) {
struct timeval now_tv;
double now_dbl;
now.clock_type = clock;
switch (clock) {
case GPR_CLOCK_REALTIME:
gettimeofday(&now_tv, NULL);

@ -55,6 +55,7 @@ gpr_timespec gpr_now(gpr_clock_type clock) {
struct _timeb now_tb;
LARGE_INTEGER timestamp;
double now_dbl;
now_tv.clock_type = clock;
switch (clock) {
case GPR_CLOCK_REALTIME:
_ftime_s(&now_tb);

Loading…
Cancel
Save