summaryrefslogtreecommitdiff
path: root/src/components/datetime/DateTimeController.h
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-08-17 23:53:57 +0000
committerTim Keller <geekboy1011@gmail.com>2021-08-17 23:53:57 +0000
commit55f8908769aab970413b249cb26acdaf22c79ada (patch)
tree21d0e06dd2ca20ac99abbcfe06661fff5a6c2e64 /src/components/datetime/DateTimeController.h
parentee44b6ff4998d6f4d0672c05c1f65c0a9692dc0d (diff)
Make Clock Persistant.
Diffstat (limited to 'src/components/datetime/DateTimeController.h')
-rw-r--r--src/components/datetime/DateTimeController.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/datetime/DateTimeController.h b/src/components/datetime/DateTimeController.h
index 265d6e9d..ed7b0861 100644
--- a/src/components/datetime/DateTimeController.h
+++ b/src/components/datetime/DateTimeController.h
@@ -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;