Share via


CBaseReferenceClock::GetPrivateTime

 
Microsoft DirectShow 9.0

CBaseReferenceClock::GetPrivateTime

The GetPrivateTime method retrieves the real time from the clock.

Syntax

  virtual REFERENCE_TIME GetPrivateTime(void);

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

**  Header:** Declared in Refclock.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also