comparison base/Profiler.cpp @ 259:dc46851837d6

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 91fdc752e540
children 115f60df1e4d
comparison
equal deleted inserted replaced
258:96a6dd889c68 259:dc46851837d6
46 Profiles::~Profiles() 46 Profiles::~Profiles()
47 { 47 {
48 dump(); 48 dump();
49 } 49 }
50 50
51 void Profiles::accumulate(const char* id, clock_t time, RealTime rt) 51 void Profiles::accumulate(
52 #ifndef NO_TIMING
53 const char* id, clock_t time, RealTime rt
54 #else
55 const char*, clock_t, RealTime
56 #endif
57 )
52 { 58 {
53 #ifndef NO_TIMING 59 #ifndef NO_TIMING
54 ProfilePair &pair(m_profiles[id]); 60 ProfilePair &pair(m_profiles[id]);
55 ++pair.first; 61 ++pair.first;
56 pair.second.first += time; 62 pair.second.first += time;