changeset 871:0b15c9328003 tonioni

Debug out operator for real time
author Chris Cannam
date Thu, 09 Jan 2014 21:43:33 +0000
parents 284851a784fa
children afeb580b1b57
files base/Debug.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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;