Microsoft Windows CE 3.0  

CBaseReferenceClock::SetTimeDelta

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Sets a delta on the time that CBaseReferenceClock::GetPrivateTimewill return.

HRESULT SetTimeDelta(
const REFERENCE_TIME&
TimeDelta
);

Parameters

TimeDelta
REFERENCE_TIME delta to be added.

Return Values

Returns NOERROR.

Remarks

Note that CBaseReferenceClock::GetTimewill never return a time earlier than a previously returned time. Thus, if you set the clock to a time in the past, successive calls to CBaseReferenceClock::GetTimewill return the current value until this new time is reached, and the clock will start to increment again.