Make Clock Persistant.
This commit is contained in:
parent
ee44b6ff49
commit
55f8908769
4 changed files with 28 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue