ClockType enumeration (pla.h)

Defines the clock resolution to use when tracing events.

Syntax

typedef enum __MIDL___MIDL_itf_pla_0001_0043_0005 {
  plaTimeStamp = 0,
  plaPerformance = 1,
  plaSystem = 2,
  plaCycle = 3
} ClockType;

Constants

 
plaTimeStamp
Value: 0
Use the raw (unconverted) time stamp.
plaPerformance
Value: 1
Query performance counter. This counter provides a high-resolution (100 nanoseconds) time stamp but is more resource-intensive to retrieve than system time.
plaSystem
Value: 2
System time. The system time provides a low-resolution (10 milliseconds) time stamp but is less resource-intensive to retrieve than the query performance counter.
plaCycle
Value: 3
CPU cycle counter. The CPU counter provides the highest resolution time stamp and is the least resource-intensive to retrieve. However, the CPU counter is unreliable and should not be used in production.

Remarks

For details, see the ClientContext member of the WNODE_HEADER structure.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header pla.h

See also

ITraceDataCollector::ClockType