IReferenceClock::GetTime method (strmif.h)

The GetTime method retrieves the current reference time.

Syntax

HRESULT GetTime(
  REFERENCE_TIME *pTime
);

Parameters

pTime

Pointer to a variable that receives the current time, in 100-nanosecond units.

Return value

Returns an HRESULT value. Possible values include the following.

Return code Description
E_POINTER
NULL pointer argument.
S_FALSE
Returned time is the same as the previous value.
S_OK
Success.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also

Error and Success Codes

IReferenceClock Interface