aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Alistair Veitch <aveitch@google.com>2015-08-25 15:24:49 -0700
committerGravatar Alistair Veitch <aveitch@google.com>2015-08-25 15:24:49 -0700
commitf886985d2c775d480079ea979323ae22efc0afc6 (patch)
tree5469ac52d481927662ae515dfd2eafc3a5b11525 /src
parent0879df275530e0a990ad1e785137546eb43842e6 (diff)
refactor census_timestamp
Diffstat (limited to 'src')
-rw-r--r--src/core/census/operation.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/census/operation.c b/src/core/census/operation.c
index a0196da614..118eb0a47a 100644
--- a/src/core/census/operation.c
+++ b/src/core/census/operation.c
@@ -34,7 +34,13 @@
/* TODO(aveitch): These are all placeholder implementations. */
-census_timestamp *census_start_rpc_op_timestamp(void) { return NULL; }
+census_timestamp census_start_rpc_op_timestamp(void) {
+ census_timestamp ct;
+ /* TODO(aveitch): assumes gpr_timespec implementation of census_timestamp. */
+ ct.ts = gpr_now(GPR_CLOCK_MONOTONIC);
+ return ct;
+}
+
census_context *census_start_client_rpc_op(
const census_context *context, gpr_int64 rpc_name_id,
const census_rpc_name_info *rpc_name_info, const char *peer, int trace_mask,