From b8b650cd5cd7209ce1bb71afff76026518029037 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Tue, 7 Jun 2022 11:19:29 +0100 Subject: [PATCH] Show fps as int (avoiding scientific notation) --- main/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 7e576e1..265a52d 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -927,7 +927,9 @@ int main(int argc, char **argv) etv.tv_usec -= tv.tv_usec; double sec = double(etv.tv_sec) + (double(etv.tv_usec) / 1000000.0); - cerr << "elapsed time: " << sec << " sec, in frames/sec: " << countIn/sec << ", out frames/sec: " << countOut/sec << endl; + cerr << "elapsed time: " << sec << " sec, in frames/sec: " + << int64_t(countIn/sec) << ", out frames/sec: " + << int64_t(countOut/sec) << endl; } RubberBand::Profiler::dump();