diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2014-02-20 19:42:31 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2014-02-20 19:42:31 +0100 |
commit | 08b00bdf650bed77d198f6cac4611f8514284c20 (patch) | |
tree | 4972360242f4bd3babe45b0fc6ef2f1ec31e1b21 /src/mixxxapplication.cpp | |
parent | b4468839766ebf3c4fdc8ff8bb3a173a2848e68a (diff) |
Added conditional timing test based on RJ's patch, Thank you.
Diffstat (limited to 'src/mixxxapplication.cpp')
-rw-r--r-- | src/mixxxapplication.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mixxxapplication.cpp b/src/mixxxapplication.cpp index a0049dc87f..472b17c00b 100644 --- a/src/mixxxapplication.cpp +++ b/src/mixxxapplication.cpp @@ -7,6 +7,11 @@ #include "controlobjectthread.h" #include "mixxx.h" +//#define TIMINGTEST +#ifdef TIMINGTEST +#include "util/timer.h" +#endif + extern void qt_translateRawTouchEvent(QWidget *window, QTouchEvent::DeviceType deviceType, const QList<QTouchEvent::TouchPoint> &touchPoints); @@ -24,6 +29,12 @@ MixxxApplication::~MixxxApplication() { } bool MixxxApplication::notify(QObject* target, QEvent* event) { + +#ifdef TIMINGTEST + Timer timer("MixxxApplication::notify"); + timer.start(); +#endif + switch (event->type()) { case QEvent::TouchBegin: case QEvent::TouchUpdate: @@ -131,6 +142,9 @@ bool MixxxApplication::notify(QObject* target, QEvent* event) { default: break; } +#ifdef TIMINGTEST + timer.elapsed(true); +#endif // No touch event return QApplication::notify(target, event); } |