From 9afba0678769bd8c72f370bac20bc5cee6cce649 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Fri, 8 Jan 2021 15:33:42 +0000 Subject: [PATCH] Round these values to integers, otherwise we start getting scientific notation now our computers are all so fast --- main/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index d4e1085..8a2aa62 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -648,7 +648,10 @@ 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(round(countIn/sec)) + << ", out frames/sec: " << int64_t(round(countOut/sec)) + << endl; } RubberBand::Profiler::dump();