Replies: 1 comment 2 replies
-
That's strange, since both calls used the same call to gettimeofday(). Only time_ns() adds the µs value as well.. Try running it without Thonny. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm developing on the ESP32-S2 and encounter a strange behaviour:
The code:
When I run this code after a restart, time.time_ns() is frozen. EG:
>>> %Run -c $EDITOR_CONTENT time(): 730130955 time_ns(): 730130944 delta: 11 time(): 730130956 time_ns(): 730130944 delta: 12
When I run it after a brownout, time.time_ns() is correctly implemented:
time(): 2 time_ns(): 2 delta: 0 time(): 3 time_ns(): 3 delta: 0 time(): 4 time_ns(): 4 delta: 0
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions