diff options
author | Makarand Dharmapurikar <makarandd@google.com> | 2016-09-28 12:50:37 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@google.com> | 2016-09-28 12:50:37 -0700 |
commit | af564a1e920af86260a8003e20091c9eaa4e1c81 (patch) | |
tree | e4b1f53bc3e6e761ee27481db8de838fa362bb93 /test/cpp/interop/interop_client.cc | |
parent | 1bb6e68fde7266c0ff626b4d0fcc735d1710d9c0 (diff) |
changed timestamp clock from REALTIME to PRECISE
to increase robustness
Diffstat (limited to 'test/cpp/interop/interop_client.cc')
-rw-r--r-- | test/cpp/interop/interop_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/interop/interop_client.cc b/test/cpp/interop/interop_client.cc index 49ecf2620e..f323090ebf 100644 --- a/test/cpp/interop/interop_client.cc +++ b/test/cpp/interop/interop_client.cc @@ -849,7 +849,7 @@ bool InteropClient::DoCacheableUnary() { gpr_log(GPR_DEBUG, "Sending RPC with cacheable response"); // Create request with current timestamp - gpr_timespec ts = gpr_now(GPR_CLOCK_REALTIME); + gpr_timespec ts = gpr_now(GPR_CLOCK_PRECISE); std::string timestamp = std::to_string(ts.tv_nsec); SimpleRequest request; request.mutable_payload()->set_body(timestamp.c_str(), timestamp.size()); |