Performance Macros

The Measure.h header file in the Microsoft® DirectShow® base classes provides macros that help record performance data by maintaining a circular log of the start and stop times of certain events.

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.

Syntax

#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.

Syntax

#define MSR_STOP(
  int Id
  )

Parameters

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

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.