fix importing on boards where time.monotonic_ns raises NotImplementedError
This commit is contained in:
parent
963dac8ffa
commit
3fa7f7e698
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ except (ImportError, NameError):
|
|||
until a holiday."""
|
||||
return (_monotonic_ns() // 1_000_000) & _TICKS_MAX
|
||||
|
||||
except (ImportError, NameError):
|
||||
except (ImportError, NameError, NotImplementedError):
|
||||
from time import monotonic as _monotonic
|
||||
|
||||
def ticks_ms():
|
||||
|
|
|
|||
Loading…
Reference in a new issue