diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-02-23 17:32:11 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-02-23 23:17:18 +0200 |
| commit | 05f404950afeef26393b3e385bdb6d77df423e86 (patch) | |
| tree | 427f9f8578078ae472bacc9f564b13895ab3cf22 /src/components/timer/TimerController.h | |
| parent | 56b6291ab779acd8cd5af007a0a97397a93a33f2 (diff) | |
TimerController: Use chrono for durations
Diffstat (limited to 'src/components/timer/TimerController.h')
| -rw-r--r-- | src/components/timer/TimerController.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <FreeRTOS.h> #include <timers.h> +#include <chrono> + 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(); |
