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
srtmwshutdown.c
gathers thread-level timer latencies (either as a Win32 or RTSS process) and prints out a summary and an optional histogram of results. The timer can also generate a sound on the speaker. This is a useful tool for measuring application-level response time latencies while the system is stressed by other activity, such as disk, network, and GUI IO, and/or heavy processing. Different hardware platforms can also be compared. Additionally, this handles ending the application if the system is shut down while running
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