Timer API
The Timer API provides essential timer services for Microsoft ActiveX Controls, supports external reference clocks, and enables synchronization between controls and scripts.
Overviews/Tutorials
Timer APITimers are essential to multimedia and animation applications. Good animation depends on timer accuracy and synchronization between multiple time-dependent components. Developers can use the Microsoft Timer API to synchronize time-dependent components such as audio and video clips.
Objects
ITimerThis object provides access to timer functions such as ITimer::Freeze and ITimer::GetTime.
ITimerServiceThis object creates a timer object and retrieves and sets named timers.
ITimerSinkThis object provides access to a timer's schedule.
Interfaces
ITimerImplements timer functions.
ITimerExProvides a timer that automatically halts when the page is not visible or is loaded into an inactive tab.
ITimerServiceCreates, gets, and sets timer objects.
ITimerSinkImplements a method that is called by the timer service for a scheduled event.
Methods
ITimer::AdviseSchedules single or periodic notifications.
ITimerService::CreateTimerCreates a timer object.
ITimer::FreezeHalts the timer temporarily.
ITimerService::GetNamedTimerGets the named timer.
ITimer::GetTimeGets the current time of the timer.
ITimerSink::OnTimerCalled by the timer service for a scheduled event.
ITimerEx::SetModeSets the visibility mode of the timer.
ITimerService::SetNamedTimerReferenceReplaces the named timer's reference timer with a new reference timer.
ITimer::UnadviseCancels an event request.