다음을 통해 공유


Test Cases for the GTC Print Resolution and Time Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows the test cases for the GTC Print Resolution and Time Test.

Test case Description

1

Timer Test Usage Message

Prints out the usage message for the OAL Timer Tests. Tells the user what the tests do and specifies the input if any that the user needs to provide to the tests.

1010

Tick Count Resolution (high priority)

Determines the resolution of the clock for the GetTickCount function. The test case records the resolution of the clock for 1000 iterations, and then averages the recorded values to report a result.

This test case runs at a scheduler priority of 1.

This test case prints out the calculated resolution; the user must verify that it is as expected. The test case fails if the average of the recorded values is greater than the maximum specified resolution, which is 1 ms by default.

You can specify the maximum resolution by specifying -c "–gtcMaxRes seconds", where seconds is the maximum number of seconds for resolution. This parameter accepts decimal values to a resolution of 1 ms; for example, -gtcMaxRes 0.001 specifies 1 ms.

Ee505619.note(en-US,WinEmbedded.60).gifNote:
This test case evaluates resolution, not precision. The precision of a clock is the smallest unit of measurement that the clock displays. The resolution is the smallest interval/tick that the clock accurately measures

1050

Print GetTickCount

Prints out the value of GetTickCount ten times, sleeping for one second between each call.

See Also

Other Resources

GTC Print Resolution and Time Test