IReferenceClockTimerControl::GetDefaultTimerResolution
Microsoft DirectShow 9.0 |
IReferenceClockTimerControl::GetDefaultTimerResolution
This topic applies to Windows Vista and later.
The GetDefaultTimerResolution method returns the timer resolution that was requested by the reference clock.
Syntax
HRESULT GetDefaultTimerResolution( REFERENCE_TIME *pTimerResolution );
Parameters
pTimerResolution
[out] Receives the requested timer resolution, in 100-nanosecond units.
Return Value
Returns an HRESULT value. Possible values include the following.
Return Code | Description |
S_OK | Success. |
E_POINTER | NULL pointer argument. |
Remarks
The value returned in pTimerResolution is the period that the reference clock attempts to set on the underlying timer. The actual timer period might differ, depending on the hardware. If the reference clock did not request a minimum timer resolution, the pTimerResolution parameter receives the value zero.
Requirements
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also