1
0
Fork 0

drivers: nrf_rtc: Add a higher res monotonic timer

This commit is contained in:
Daniel Thompson 2020-03-07 11:49:35 +00:00
parent 1b334f7ad9
commit 9664c394a6

View file

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