Skip to content

Commit

Permalink
whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#…
Browse files Browse the repository at this point in the history
…1434)

Co-authored-by: Ben Nortier <ben@bjnortier.com>
  • Loading branch information
bjnortier and bjnortier authored Nov 7, 2023
1 parent b629d2d commit 11b5030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3688,6 +3688,7 @@ void whisper_print_timings(struct whisper_context * ctx) {
}

void whisper_reset_timings(struct whisper_context * ctx) {
ctx->t_start_us = ggml_time_us();
if (ctx->state != nullptr) {
ctx->state->t_sample_us = 0;
ctx->state->t_encode_us = 0;
Expand Down

0 comments on commit 11b5030

Please sign in to comment.