comparison base/RealTime.cpp @ 183:146eb9e35baa

* Improve output from Profiler class and make it incur less (no) overhead in release builds with NO_TIMING defined * Fix a lock contention issue in spectrogram * Marginal optimisations elsewhere
author Chris Cannam
date Tue, 10 Oct 2006 14:51:17 +0000
parents 4b2ea82fd0ed
children 21b9b25bff48
comparison
equal deleted inserted replaced
182:f75f8a1cd7b1 183:146eb9e35baa
171 std::string s = out.str(); 171 std::string s = out.str();
172 172
173 return s; 173 return s;
174 } 174 }
175 175
176 RealTime
177 RealTime::operator*(int m) const
178 {
179 double t = (double(nsec) / ONE_BILLION) * m;
180 t += sec * m;
181 return fromSeconds(t);
182 }
176 183
177 RealTime 184 RealTime
178 RealTime::operator/(int d) const 185 RealTime::operator/(int d) const
179 { 186 {
180 int secdiv = sec / d; 187 int secdiv = sec / d;