mirror of
https://github.com/micropython/micropython.git
synced 2026-01-16 00:47:17 +01:00
Currently on rp2 the time.time_ns() function has only seconds resolution. This commit makes it have microsecond resolution, by using the output of time_us_64() instead of the RTC. Tested that it does not drift from the RTC over long periods of time. Signed-off-by: Damien George <damien.p.george@gmail.com>