1
0
Fork 0

drivers: nrf_rtc: Add a higher res monotonic timer

pull/7/head
Daniel Thompson 2020-03-07 11:49:35 +00:00
parent 1b334f7ad9
commit 9664c394a6
1 changed files with 4 additions and 0 deletions

View File

@ -57,3 +57,7 @@ class RTC(object):
def get_time(self):
localtime = self.get_localtime()
return localtime[3:6]
def get_uptime_ms(self):
"""Return the current uptime in milliseconds."""
return self.uptime * 1000