When I'm testing the utime.time_ns() code in isolation, I realize I can't measure faster than 130 microseconds. I've done this both on an esp8266 and esp32 board and get similarly slow results.
Is this to be expected? Is there a better way to measure quick intervals?
Code: Select all
a=utime.time_ns()
b=utime.time_ns()
print(b-a)
# 134000
# ie 134 microseconds