MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _QueryCtx_GetCountedMilliseconds

Function _QueryCtx_GetCountedMilliseconds

src/query_ctx.c:77–89  ·  view source on GitHub ↗

returns the number of milliseconds the timer has counted this function reset the timer

Source from the content-addressed store, hash-verified

75// returns the number of milliseconds the timer has counted
76// this function reset the timer
77static double _QueryCtx_GetCountedMilliseconds
78(
79 QueryCtx *ctx
80) {
81 ASSERT(ctx != NULL);
82
83 double ms = TIMER_GET_ELAPSED_MILLISECONDS(ctx->stats.timer);
84
85 // resets the stage timer
86 simple_tic(ctx->stats.timer);
87
88 return ms;
89}
90
91// reads the stage timer and updates the current stage duration
92static void _QueryCtx_UpdateStageDuration

Callers 1

Calls 1

simple_ticFunction · 0.85

Tested by

no test coverage detected