compute and return elapsed query execution time
| 442 | |
| 443 | // compute and return elapsed query execution time |
| 444 | double 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 |
| 453 | void QueryCtx_Free(void) { |
no test coverage detected