Ben Nortier bjnortier commited on
Commit
f0f722d
·
unverified ·
1 Parent(s): 31ebf9f

whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#1434)

Browse files
Files changed (1) hide show
  1. whisper.cpp +1 -0
whisper.cpp CHANGED
@@ -3688,6 +3688,7 @@ void whisper_print_timings(struct whisper_context * ctx) {
3688
  }
3689
 
3690
  void whisper_reset_timings(struct whisper_context * ctx) {
 
3691
  if (ctx->state != nullptr) {
3692
  ctx->state->t_sample_us = 0;
3693
  ctx->state->t_encode_us = 0;
 
3688
  }
3689
 
3690
  void whisper_reset_timings(struct whisper_context * ctx) {
3691
+ ctx->t_start_us = ggml_time_us();
3692
  if (ctx->state != nullptr) {
3693
  ctx->state->t_sample_us = 0;
3694
  ctx->state->t_encode_us = 0;