Mercurial > hg > svcore
diff base/Profiler.cpp @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | c811991a5efa |
children | 70e172e6cc59 |
line wrap: on
line diff
--- a/base/Profiler.cpp Thu Mar 01 14:43:40 2018 +0000 +++ b/base/Profiler.cpp Thu Mar 01 18:02:22 2018 +0000 @@ -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; }