SRTMWShutdown
The System Response Time Measurement (SRTM) utility measures timer delivery latencies using wRTOS 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
| File | Description |
|---|---|
srtmwshutdown.c
|
The source file gathers thread-level timer latencies (either as a Windows or RTSS process) and prints out a summary and an optional histogram of results. 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 ends 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] [/1] [/f] seconds_to_sample
Options
/h
Display histogram (in addition to summary)
/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 are given, the sample runs with this command:
srtm /h /s /f 15
Remarks
The SRTM program can be built as a Windows .exe or real-time .rtss executable file.
APIs Referenced
|
RTAPI |
|---|
See Also: