OAL Timer Tests (Windows Embedded CE 6.0)
1/6/2010
The OAL Timer Tests confirm that the timers in a board support package (BSP) and OEM adaptation layer (OAL) operate correctly. Three different timers are tested: the GetTickCount (GTC) clock, the high-performance clock, and the real-time clock (RTC). This test verifies that the resolution and drift of each timer are within acceptable bounds and that no timer runs backward (monotonically increases until overflow). Drift tests compare the timers to each other. The RTC to NTP Drift Test compares the RTC with an NTP server, if available.
To compare the timers on the target device to outside clock sources, you can make use of the wall clock drift tests. These semi-automated tests verify that the onboard timers do not drift relative to outside clocks. The wall clock drift tests are not currently documented outside the CETK database.
In This Section
- GTC Print Resolution and Time Test
Verifies the resolution of the GetTickCount timer.
- GTC Backwards Check with Busy Sleep Test
Confirms that the GTC clock does not run backward.
- GTC Backwards Check with Random Sleep Test
Confirms that the GTC clock does not run backward.
- GTC Verify GetIdleTime Test
Verifies implementation of GetIdleTime.
- High Performance Timer Print Resolution and Time Test
Verifies resolution of the high performance clock.
- High Performance Timer Backwards Check Test
Confirms that the high performance clock does not run backward.
- RTC Print Resolution and Time Test
Verifies resolution of the real-time clock (RTC).
- RTC Backwards Check Test
Confirms that the RTC does not run backward.
- RTC Real-Time Functions Test
Verifies the implementation of OEMGetRealTime and OEMSetRealTime.
- RTC to NTP Drift Test
Compares the RTC to an NTP server to check for drift.
- Compare All Three Timers Drift Test with Busy Sleep
Checks for drift on the three clocks by comparing them with each other.
- Compare All Three Timers Drift Test with OS Sleep
Checks for drift on the three clocks by comparing them with each other.
- Compare All Three Timers Drift Test with OEMIdle Periodic
Checks for drift on the three clocks by comparing them with each other.
- Compare All Three Timers Drift Test with OEMIdle Random
Checks for drift on the three clocks by comparing them with each other.
- Wall Clock and GTC Drift Test
Compares internal clock drift against an external clock. This is a manual (semiautomated) test.
- Wall Clock and High Performance Drift Test
Compares internal clock drift against an external clock. This is a manual (semiautomated) test.
- Wall Clock and RTC Drift Test
Compares internal clock drift against an external clock. This is a manual (semiautomated) test.