MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / GetTime

Method GetTime

common/baseclasses/refclock.cpp:134–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134STDMETHODIMP CBaseReferenceClock::GetTime(__out REFERENCE_TIME *pTime)
135{
136 HRESULT hr;
137 if (pTime)
138 {
139 REFERENCE_TIME rtNow;
140 Lock();
141 rtNow = GetPrivateTime();
142 if (rtNow > m_rtLastGotTime)
143 {
144 m_rtLastGotTime = rtNow;
145 hr = S_OK;
146 }
147 else
148 {
149 hr = S_FALSE;
150 }
151 *pTime = m_rtLastGotTime;
152 Unlock();
153 MSR_INTEGER(m_idGetSystemTime, LONG((*pTime) / (UNITS / MILLISECONDS)));
154
155#ifdef DXMPERF
156 PERFLOG_GETTIME((IReferenceClock *)this, *pTime);
157#endif // DXMPERF
158 }
159 else
160 hr = E_POINTER;
161
162 return hr;
163}
164
165/* Ask for an async notification that a time has elapsed */
166

Callers 15

ShouldSkipFrameMethod · 0.45
DisplaySampleTimesMethod · 0.45
CopyMethod · 0.45
DisplayRendererStateMethod · 0.45
GetSampleTimesMethod · 0.45
SendEndOfStreamMethod · 0.45
OnRenderStartMethod · 0.45
OnRenderEndMethod · 0.45
OnWaitEndMethod · 0.45
ShouldDrawSampleNowMethod · 0.45
DeliverSampleMethod · 0.45
CheckStreamStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected