From 29cafc48ef0a2158c3cb47227f3212c3575b5a03 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 20 Oct 2021 16:37:35 -0400 Subject: [PATCH] Add Timer::getTime(). --- include/dsp/digital.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dsp/digital.hpp b/include/dsp/digital.hpp index 0d33bc22..1e65e6ec 100644 --- a/include/dsp/digital.hpp +++ b/include/dsp/digital.hpp @@ -125,6 +125,10 @@ struct TTimer { time += deltaTime; return time; } + + T getTime() { + return time; + } }; typedef TTimer<> Timer;