diff options
| author | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-11 10:56:58 (GMT) |
|---|---|---|
| committer | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-11 10:56:58 (GMT) |
| commit | ce91e1a7a6e7ccf674aabfb20770d13cb4eb3190 (patch) | |
| tree | 20f43ac62f45d994d24a86d0756fa55ab3c3bc83 /src/displayapp/screens/StopWatch.h | |
| parent | 1f8f527f9f99e7d0a17503ae095800ce80d51b14 (diff) | |
Changed the clock source. Stopwatch works. Need to add butttons.
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
| -rw-r--r-- | src/displayapp/screens/StopWatch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index ecc1f27..4763fd1 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 |
