drivers: nrf_rtc: Add a higher res monotonic timer
This commit is contained in:
parent
1b334f7ad9
commit
9664c394a6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue