From 762e75f5a3ef2a4dcfcb4d3db1ebd7ddf949e171 Mon Sep 17 00:00:00 2001 From: Ben Nortier Date: Tue, 7 Nov 2023 11:04:32 +0200 Subject: [PATCH] whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#1434) Co-authored-by: Ben Nortier --- whisper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper.cpp b/whisper.cpp index 60b3bf057fe..7f4f69a91d1 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -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;