Spaces:
Sleeping
Sleeping
Daniel Ziegenberg
commited on
main : dont print timings with --no-prints (#2108)
Browse filesSigned-off-by: Daniel Ziegenberg <[email protected]>
- 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 |
-
|
|
|
|
|
|
|
| 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;
|