CBaseReferenceClock.GetPrivateTime method
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetPrivateTime
method retrieves the real time from the clock.
Syntax
virtual REFERENCE_TIME GetPrivateTime();
Parameters
This method has no parameters.
Return value
Returns the current clock time, in 100-nanosecond units.
Remarks
This method returns the real time reported by the clock. External callers use the CBaseReferenceClock::GetTime method, which calls this method. Unlike the GetTime method, the internal clock is allowed to go backward. If that happens, the GetTime method continues to return the last time that it reported, until the GetPrivateTime
method catches up.
This method returns the system time. Override this method if your clock gets the time from another source.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|