mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-18 20:27:53 +00:00
whisper : reset ctx->t_start_us when calling whisper_reset_timings() (#1434)
Co-authored-by: Ben Nortier <ben@bjnortier.com>
This commit is contained in:
parent
b629d2d4fe
commit
11b503055e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user