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

Co-authored-by: Ben Nortier <ben@bjnortier.com>
pull/1445/head
Ben Nortier 2023-11-07 11:04:32 +02:00 committed by GitHub
parent b629d2d4fe
commit 11b503055e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;