summaryrefslogtreecommitdiffhomepage
path: root/filter-accela
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-17 12:26:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-17 12:35:13 +0200
commit7dd2465bda645a560de8f8457c7267e0ef77c4b2 (patch)
tree081ac52c42039944d68054009a73cd35165c8bb9 /filter-accela
parent0fa7b7372c80edc40c5ec140b665a21ebad6bba2 (diff)
filter/accela: update wrt compat/timer
Diffstat (limited to 'filter-accela')
-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()