From f886985d2c775d480079ea979323ae22efc0afc6 Mon Sep 17 00:00:00 2001 From: Alistair Veitch Date: Tue, 25 Aug 2015 15:24:49 -0700 Subject: refactor census_timestamp --- src/core/census/operation.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3