Daniel Ziegenberg commited on
Commit
685d1c1
·
unverified ·
1 Parent(s): 9a3f777

main : dont print timings with --no-prints (#2108)

Browse files

Signed-off-by: Daniel Ziegenberg <[email protected]>

Files changed (1) hide show
  1. examples/main/main.cpp +3 -1
examples/main/main.cpp CHANGED
@@ -1233,7 +1233,9 @@ int main(int argc, char ** argv) {
1233
  }
1234
  }
1235
 
1236
- whisper_print_timings(ctx);
 
 
1237
  whisper_free(ctx);
1238
 
1239
  return 0;
 
1233
  }
1234
  }
1235
 
1236
+ if (!params.no_prints) {
1237
+ whisper_print_timings(ctx);
1238
+ }
1239
  whisper_free(ctx);
1240
 
1241
  return 0;