Mercurial > hg > svcore
diff base/Profiler.cpp @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 48e9f538e6e9 |
children | 70e172e6cc59 |
line wrap: on
line diff
--- a/base/Profiler.cpp Mon Dec 12 15:18:52 2016 +0000 +++ b/base/Profiler.cpp Mon Sep 17 13:51:14 2018 +0100 @@ -100,7 +100,7 @@ fprintf(stderr, "\tCPU: \t%.9g ms/call \t[%d ms total]\n", (((double)pp.second.first * 1000.0 / - (double)pp.first) / CLOCKS_PER_SEC), + (double)pp.first) / CLOCKS_PER_SEC), int((double(pp.second.first) * 1000.0) / CLOCKS_PER_SEC)); fprintf(stderr, "\tReal: \t%s ms \t[%s ms total]\n", @@ -192,8 +192,8 @@ RealTime elapsedTime = RealTime::fromTimeval(tv) - m_startTime; cerr << "Profiler : id = " << m_c - << " - elapsed so far = " << ((elapsedCPU * 1000) / CLOCKS_PER_SEC) - << "ms CPU, " << elapsedTime << " real" << endl; + << " - elapsed so far = " << ((elapsedCPU * 1000) / CLOCKS_PER_SEC) + << "ms CPU, " << elapsedTime << " real" << endl; } Profiler::~Profiler() @@ -215,7 +215,7 @@ if (m_showOnDestruct) cerr << "Profiler : id = " << m_c << " - elapsed = " << ((elapsedCPU * 1000) / CLOCKS_PER_SEC) - << "ms CPU, " << elapsedTime << " real" << endl; + << "ms CPU, " << elapsedTime << " real" << endl; m_ended = true; }