summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index 956d0144..46b20fa7 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -13,6 +13,7 @@
#include <QMutexLocker>
#include "compat/math-imports.hpp"
+#include "compat/time.hpp"
accela::accela() : first_run(true)
{
@@ -121,8 +122,9 @@ void accela::filter(const double* input, double *output)
using time_units::secs_;
- if (debug_timer.is_elapsed(secs_(1)))
+ if (debug_timer.elapsed_seconds() >= 1)
{
+ debug_timer.start();
qDebug() << "accela:"
<< "max" << debug_max
<< "mean" << var.avg()