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

Function QueryCtx_GetRuntime

src/query_ctx.c:444–450  ·  view source on GitHub ↗

compute and return elapsed query execution time

Source from the content-addressed store, hash-verified

442
443// compute and return elapsed query execution time
444double QueryCtx_GetRuntime(void) {
445 QueryCtx *ctx = _QueryCtx_GetCtx();
446 ASSERT(ctx != NULL);
447
448 return ctx->stats.durations[QueryStage_EXECUTING] +
449 ctx->stats.durations[QueryStage_REPORTING];
450}
451
452// free the allocations within the QueryCtx and reset it for the next query
453void QueryCtx_Free(void) {

Callers 3

ResultSetStat_emitFunction · 0.85
_ExecuteQueryFunction · 0.85

Calls 1

_QueryCtx_GetCtxFunction · 0.85

Tested by

no test coverage detected