tests/e2e/common/hal/teensy/teensy_timestamp_test.h
// This test covers the case where the number of milliseconds
// and the tick count are needed to confirm the result.

This test covers the case where the number of milliseconds
and the tick count are needed to confirm the result.
This test covers the case where the number of milliseconds and the tick count are needed to confirm the result .
static void timed_out_nanos() {
        TeensyTimestamp timestamp;
        delayMicroseconds(5'000);
        TEST_ASSERT_TRUE(timestamp.timed_out_nanos(4'999'000));
        TEST_ASSERT_TRUE(timestamp.timed_out_nanos(5'000'000));
        TEST_ASSERT_FALSE(timestamp.timed_out_nanos(5'001'000));
    }
static void timed_out_nanos ( ) { TeensyTimestamp timestamp ; delayMicroseconds ( 5'000 ) ; TEST_ASSERT_TRUE ( timestamp . timed_out_nanos ( 4'999'000 ) ) ; TEST_ASSERT_TRUE ( timestamp . timed_out_nanos ( 5'000'000 ) ) ; TEST_ASSERT_FALSE ( timestamp . timed_out_nanos ( 5'001'000 ) ) ; }
This test covers the case where the number of milliseconds
and the tick count are needed to confirm the result.
This test covers the case where the number of milliseconds and the tick count are needed to confirm the result .
// GIVEN a new timestamp
 // WHEN some milliseconds have passed
 // THEN a slightly shorter interval has passed
 // AND the same interval has passed
 // AND a slightly longer interval has not passed
