Microsoft DirectX 9.0

IReferenceClock::GetTime

The GetTime method retrieves the current reference time.

Syntax

HRESULT GetTime(
  REFERENCE_TIME *pTime
);

Parameters

pTime

[out] 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.

See Also