diff base/Debug.h @ 871:0b15c9328003 tonioni

Debug out operator for real time
author Chris Cannam
date Thu, 09 Jan 2014 21:43:33 +0000
parents e802e550a1f2
children 16dc7307d43a
line wrap: on
line diff
--- a/base/Debug.h	Thu Jan 09 21:30:33 2014 +0000
+++ b/base/Debug.h	Thu Jan 09 21:43:33 2014 +0000
@@ -19,6 +19,8 @@
 #include <QDebug>
 #include <QTextStream>
 
+#include <vamp-hostsdk/RealTime.h>
+
 #include <string>
 #include <iostream>
 
@@ -39,6 +41,11 @@
 
 #define SVDEBUG getSVDebug()
 
+inline QDebug &operator<<(QDebug &d, const Vamp::RealTime &rt) {
+    d << rt.toString();
+    return d;
+}
+
 template <typename T>
 inline QDebug &operator<<(QDebug &d, const T &t) {
     QString s;