diff --git a/app/task/task.h b/app/task/task.h index a711d9483..cf32cd206 100644 --- a/app/task/task.h +++ b/app/task/task.h @@ -23,6 +23,7 @@ #include #include +#include #include #include "common/cancelableobject.h" @@ -93,7 +94,12 @@ public slots: { start_time_ = QDateTime::currentMSecsSinceEpoch(); - return Run(); + bool ret = Run(); + + // Print how long this task took for debugging purposes + qDebug() << this << "took" << (QDateTime::currentMSecsSinceEpoch() - start_time_); + + return ret; } /**