SRTMWShutdown

Description

The System Response Time Measurement (SRTM) utility measures timer delivery latencies using the RTX synchronized clock and timers. It then prints the results. Unlike the basic SRTM sample, this sample also includes shutdown handling to demonstrate the use of a system shutdown handler in an application.

Source Files

Building the Sample

Build the sample as is.

Running the Sample

Run the sample as is. To demonstrate shutdown, generate a Blue Screen while the sample is running.

Usage

srtm | srtm [/?] [/h] [/s] [/1] [/f] seconds_to_sample

Options

/h = Display histogram (in addition to summary)

/s = Turn on sound (square wave driven by timer)

/1 = Use a 10 MS timer period (default is 1 MS)

/f = Use fastest available timer (1MS or better)

/? = help on usage

If no parameters given, default is srtm /h /s /f 15

Remarks

The SRTM program can be built as a Win32 .exe or real-time .rtss executable file.

Also see Using SRTM.

APIs Referenced

RTAPI

RtCreateTimer

RtDeleteTimer

RtEnablePortIo

RtGetClockResolution

RtGetClockTimerPeriod

RtSetTimerRelative