tests/e2e/common/hal/teensy/teensy_timestamp_test.h
// This test covers the case where we're only concerned
// with whole milliseconds. The tick comparison isn't required.

This test covers the case where we're only concerned
with whole milliseconds. The tick comparison isn't required.
This test covers the case where we ' re only concerned with whole milliseconds . The tick comparison isn ' t required .
static void timed_out_nanos_millisecond_checks() {
        uint32_t nanos_per_milli = 1'000'000;
        TeensyTimestamp timestamp;
        delayMicroseconds(50'000);
        TEST_ASSERT_TRUE(timestamp.timed_out_nanos(49 * nanos_per_milli));
        TEST_ASSERT_TRUE(timestamp.timed_out_nanos(50 * nanos_per_milli));
        TEST_ASSERT_FALSE(timestamp.timed_out_nanos(51 * nanos_per_milli));
    }
static void timed_out_nanos_millisecond_checks ( ) { uint32_t nanos_per_milli = 1'000'000 ; TeensyTimestamp timestamp ; delayMicroseconds ( 50'000 ) ; TEST_ASSERT_TRUE ( timestamp . timed_out_nanos ( 49 * nanos_per_milli ) ) ; TEST_ASSERT_TRUE ( timestamp . timed_out_nanos ( 50 * nanos_per_milli ) ) ; TEST_ASSERT_FALSE ( timestamp . timed_out_nanos ( 51 * nanos_per_milli ) ) ; }
This test covers the case where we're only concerned
with whole milliseconds.
This test covers the case where we ' re only concerned with whole milliseconds .
// 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
