• Oliver Joos's avatar
    tests/extmod: Add test for the precision of utime functions. · 419134be
    Oliver Joos authored
    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.
    419134be
utime_res.py.exp 158 Bytes