From 05f404950afeef26393b3e385bdb6d77df423e86 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Thu, 23 Feb 2023 17:32:11 +0200 Subject: TimerController: Use chrono for durations --- src/components/timer/TimerController.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/components/timer/TimerController.h') diff --git a/src/components/timer/TimerController.h b/src/components/timer/TimerController.h index 20f07e82..1c2e44b6 100644 --- a/src/components/timer/TimerController.h +++ b/src/components/timer/TimerController.h @@ -3,6 +3,8 @@ #include #include +#include + namespace Pinetime { namespace System { class SystemTask; @@ -16,11 +18,11 @@ namespace Pinetime { void Init(System::SystemTask* systemTask); - void StartTimer(uint32_t duration); + void StartTimer(std::chrono::milliseconds duration); void StopTimer(); - uint32_t GetTimeRemaining(); + std::chrono::milliseconds GetTimeRemaining(); bool IsRunning(); -- cgit v1.2.3-70-g09d2