summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/StopWatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
-rw-r--r--src/displayapp/screens/StopWatch.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h
index ecc1f276..4763fd1e 100644
--- a/src/displayapp/screens/StopWatch.h
+++ b/src/displayapp/screens/StopWatch.h
@@ -4,7 +4,8 @@
#include "components/datetime/DateTimeController.h"
#include "../LittleVgl.h"
-#include <chrono>
+#include "FreeRTOS.h"
+#include "portmacro_cmsis.h"
namespace Pinetime::Applications::Screens {
@@ -21,13 +22,12 @@ namespace Pinetime::Applications::Screens {
bool OnTouchEvent(uint16_t x, uint16_t y) override;
private:
- using timeUnit = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>;
const Pinetime::Controllers::DateTime& dateTime;
bool running;
States currentState;
Events currentEvent;
- timeUnit startTime;
- int64_t timeElapsed;
+ TickType_t startTime;
+ TickType_t timeElapsed;
lv_obj_t *time, *msecTime;
};
} \ No newline at end of file