circuitpython/tests/extmod/utime_res.py.exp
Oliver Joos 419134bea4 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.
2021-01-23 16:54:57 +11:00

10 lines
158 B
Plaintext

Testing time
Testing gmtime
Testing localtime
Testing gmtime_time
Testing localtime_time
Testing ticks_ms
Testing ticks_us
Testing ticks_ns
Testing ticks_cpu