aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/statistics/census_rpc_stats.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-01 17:21:01 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-01 17:21:01 -0700
commitf3756c1e0d09a90173851a8e8ab4f6342ae8de45 (patch)
tree34649d67c401175aa59c1e2fcb80ca2e5f08d326 /src/core/statistics/census_rpc_stats.c
parentef558b321f4f65f37d5579648d5ff606128b60e0 (diff)
Introduce multiple clocks to GPR
Diffstat (limited to 'src/core/statistics/census_rpc_stats.c')
-rw-r--r--src/core/statistics/census_rpc_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/statistics/census_rpc_stats.c b/src/core/statistics/census_rpc_stats.c
index 0491c91947..3e571b1143 100644
--- a/src/core/statistics/census_rpc_stats.c
+++ b/src/core/statistics/census_rpc_stats.c
@@ -157,7 +157,7 @@ static void record_stats(census_ht* store, census_op_id op_id,
key.ptr = gpr_strdup(key.ptr);
census_ht_insert(store, key, (void*)window_stats);
}
- census_window_stats_add(window_stats, gpr_now(), stats);
+ census_window_stats_add(window_stats, gpr_now(GPR_CLOCK_REALTIME), stats);
} else {
census_internal_unlock_trace_store();
}
@@ -185,7 +185,7 @@ static void get_stats(census_ht* store, census_aggregated_rpc_stats* data) {
if (store != NULL) {
size_t n;
unsigned i, j;
- gpr_timespec now = gpr_now();
+ gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
census_ht_kv* kv = census_ht_get_all_elements(store, &n);
if (kv != NULL) {
data->num_entries = n;