diff 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
line wrap: on
line diff
--- a/base/RealTime.cpp	Mon Oct 09 10:49:46 2006 +0000
+++ b/base/RealTime.cpp	Tue Oct 10 14:51:17 2006 +0000
@@ -173,6 +173,13 @@
     return s;
 }
 
+RealTime
+RealTime::operator*(int m) const
+{
+    double t = (double(nsec) / ONE_BILLION) * m;
+    t += sec * m;
+    return fromSeconds(t);
+}
 
 RealTime
 RealTime::operator/(int d) const