From: Ben Nortier Date: Tue, 7 Nov 2023 09:04:32 +0000 (+0200) Subject: whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#1434) X-Git-Tag: upstream/1.7.4~1281 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=11b503055e1810afd45127b626d823fa7d15d531;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#1434) Co-authored-by: Ben Nortier --- diff --git a/whisper.cpp b/whisper.cpp index 60b3bf05..7f4f69a9 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;