Timing (Windows Multimedia)
[The feature associated with this page, DrawDib, is a legacy feature. It has been superseded by MediaComposition class. MediaComposition class has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaComposition class instead of DrawDib, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
As part of debugging an application, you can obtain information about the amount of time required to complete repetitive DrawDib operations. The DrawDibTime function returns timing information for the following operations:
- Drawing a bitmap
- Decompressing a bitmap
- Dithering a bitmap
- Stretching a bitmap
- Transferring a bitmap by using the BitBlt function
- Transferring a bitmap by using the StretchDIBits function
After retrieving a set of values, DrawDibTime resets the count and value for each operation.
The DrawDibTime function is available only in the debug version of the DrawDib functions.