DirectShow Animated Header -- Performance Macros DirectShow Animated Header -- Performance Macros* Microsoft DirectShow SDK
*Index  *Topic Contents
*Previous Topic: Object and Pin Functions
*Next Topic: Property Page Helper Functions

Performance Macros


The Measure.h header file in the DirectShow base classes provides macros that help record performance data by maintaining a circular log of the start and stop times of certain events.
Macro Description
MSR_START Records the start time of the event.
MSR_STOP Records the stop time of the event.


MSR_START

Performance Macros

Records the start time of the event with the given registered ID by adding the start time to the circular log and recording the time in StatBuffer.

#define MSR_START(
  int Id
  )

Parameters
Id
Registered ID of the event whose start is to be recorded.
Remarks

This macro does not update the statistical information. That happens when MSR_STOP is called.


MSR_STOP

Performance Macros

Records the stop time of the event with the given registered ID by adding the stop time to the circular log, and adding a StopTime-StartTime entry to the statistical record StatBuffer.

#define MSR_STOP(
  int Id
  )

Parameters
Id
Registered ID of the event whose stop is to be recorded.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page