summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2025-03-26 09:24:19 +0100
committerDamien George <damien@micropython.org>2025-05-07 16:17:07 +1000
commitff9e01782b7e0f21d8d085bdc4c917a7faf6c17e (patch)
tree4cadf4eb7964d0d7754d4ee7efcedf265cf1c359 /docs/esp8266/tutorial
parent2fda4bbe05799ccf387051acec600c6ac2e243e2 (diff)
downloadmicropython-ff9e01782b7e0f21d8d085bdc4c917a7faf6c17e.tar.gz
micropython-ff9e01782b7e0f21d8d085bdc4c917a7faf6c17e.zip
samd/modtime: Change time.time_ns() to follow the RTC time.
That is done by adding the offset to epoch, following the scheme from the RP2 port. RTC and `ticks_us()` are not precisely in sync, and so the difference between `time.time_ns()/1e9` and `time.time()` will increase by more than 9 seconds/24h. So applications should avoid using `time.time()` and `time.time_ns()` in the same context. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions