diff options
author | Craig Tiller <ctiller@google.com> | 2015-07-13 09:51:17 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-07-13 09:51:17 -0700 |
commit | 58bbc864badff97950bb68a64ce3ade8662bec5d (patch) | |
tree | 5196e7d7ce9ed4581a1c64f9f5e89bfc90e9bd7a /src/php | |
parent | 354398f9f5191bb44198b94e1828eafb60de5a67 (diff) |
Updating wrapped languages to new time functions
Diffstat (limited to 'src/php')
-rw-r--r-- | src/php/ext/grpc/timeval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/php/ext/grpc/timeval.c b/src/php/ext/grpc/timeval.c index d7530488e4..4fd069e19a 100644 --- a/src/php/ext/grpc/timeval.c +++ b/src/php/ext/grpc/timeval.c @@ -98,7 +98,7 @@ PHP_METHOD(Timeval, __construct) { "Timeval expects a long", 1 TSRMLS_CC); return; } - gpr_timespec time = gpr_time_from_micros(microseconds); + gpr_timespec time = gpr_time_from_micros(microseconds, GPR_TIMESPAN); memcpy(&timeval->wrapped, &time, sizeof(gpr_timespec)); } @@ -217,7 +217,8 @@ PHP_METHOD(Timeval, now) { * @return Timeval Zero length time interval */ PHP_METHOD(Timeval, zero) { - zval *grpc_php_timeval_zero = grpc_php_wrap_timeval(gpr_time_0); + zval *grpc_php_timeval_zero = + grpc_php_wrap_timeval(gpr_time_0(GPR_CLOCK_REALTIME)); RETURN_ZVAL(grpc_php_timeval_zero, false, /* Copy original before returning? */ true /* Destroy original before returning */); |