7.6   Timestamping

High-Resolution Timestamp Driver

When you develop your application for a target with a supported timestamp driver, the instrumented kernel tags certain events with a high-resolution timestamp. Those events are then displayed in the WindView view graph along a timeline that shows when each event occurred, based on these timestamps. You can see the exact timestamp for any particular event--for example, in the status bar, when you click on the corresponding event icon. For more details, see 2.3.2 The View Graph.  

The timestamp driver's resolution is hardware dependent, but is typically between 100 KHz (10 microseconds per tick) and 1 MHz (1 microsecond per tick). For information on the system timestamp driver for any supported board, see installDir/target/config/bspname/target.nr.1 In addition to the WRS-supplied system timestamp, users may write their own timestamp driver (see G. Creating a VxWorks Timestamp Driver) or use the timestamp provided by an emulator.

Sequence-Stamp Driver

When the real-time system runs on an unsupported board, or on a supported board without the timestamp driver included, the instrumented kernel automatically uses its sequence-stamp driver. This driver tags events with sequence numbers that represent the order in which the events occur on the target. The events are then spaced equidistantly from each other in the view graph; see Figure 7-6. In this figure, notice the following differences from the same event log created with the timestamp driver enabled, shown in Figure 7-6:


1:  For information on which target boards have timestamp drivers supported by WRS in this release, see the WindView Release Notes.