tests/extmod: Add test for the precision of utime functions.
According to documentation time() has a precision of at least 1 second. This test runs for 2.5 seconds and calls all utime functions every 100ms. Then it checks if they returned enough different results. All functions with sub-second precision will return ~25 results. This test passes with 15 results or more. Functions that do not exist are skipped silently.
Showing
tests/extmod/utime_res.py
0 → 100644
Please register or sign in to comment