summaryrefslogtreecommitdiff
path: root/src/components/datetime
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-10 12:32:18 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-10 12:32:18 (GMT)
commit248cdd9aeb964c84ad8f4e1713df599c0ffb1806 (patch)
tree3550dd85055523e436edd5b735735f81f225296b /src/components/datetime
parent01c53e32e7508381e64de20ee91feeb46adf8bea (diff)
Display deciseconds in digital watchface
Diffstat (limited to 'src/components/datetime')
-rw-r--r--src/components/datetime/DateTimeController.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/datetime/DateTimeController.h b/src/components/datetime/DateTimeController.h
index cf9d52c..2126ca1 100644
--- a/src/components/datetime/DateTimeController.h
+++ b/src/components/datetime/DateTimeController.h
@@ -60,6 +60,11 @@ namespace Pinetime {
uint8_t Seconds() const {
return second;
}
+ uint8_t Deciseconds() const {
+ uint16_t x = subsecondTicks;
+ x *= 10;
+ return x >> 10;
+ }
const char* MonthShortToString() const;
const char* DayOfWeekShortToString() const;