From 0bb05b113dc6996255f685906ade0b8c60caac76 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Mon, 13 May 2024 14:00:19 +0200 Subject: [PATCH] main : dont print timings with --no-prints (#2108) Signed-off-by: Daniel Ziegenberg --- examples/main/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/main/main.cpp b/examples/main/main.cpp index bb193186..d11c1c3f 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -1233,7 +1233,9 @@ int main(int argc, char ** argv) { } } - whisper_print_timings(ctx); + if (!params.no_prints) { + whisper_print_timings(ctx); + } whisper_free(ctx); return 0;