Make Clock Persistant.

This commit is contained in:
Tim Keller
2021-08-17 23:53:57 +00:00
parent ee44b6ff49
commit 55f8908769
4 changed files with 28 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
#include <cstdint>
#include <chrono>
extern std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> BackUpTime;
namespace Pinetime {
namespace System {
@@ -74,6 +75,7 @@ namespace Pinetime {
}
void Register(System::SystemTask* systemTask);
void SetCurrentTime(std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> t);
private:
uint16_t year = 0;