Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Timer API provides essential timer services for Microsoft ActiveX Controls, supports external reference clocks, and enables synchronization between controls and scripts.
Overviews/Tutorials
Topic | Contents |
---|---|
Timer API | Timers 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
Topic | Contents |
---|---|
ITimer | This object provides access to timer functions such as ITimer::Freeze and ITimer::GetTime. |
ITimerService | This object creates a timer object and retrieves and sets named timers. |
ITimerSink | This object provides access to a timer's schedule. |
Interfaces
Topic | Contents |
---|---|
ITimer | Implements timer functions. |
ITimerEx | Provides a timer that automatically halts when the page is not visible or is loaded into an inactive tab. |
ITimerService | Creates, gets, and sets timer objects. |
ITimerSink | Implements a method that is called by the timer service for a scheduled event. |
Methods
Topic | Contents |
---|---|
ITimer::Advise | Schedules single or periodic notifications. |
ITimerService::CreateTimer | Creates a timer object. |
ITimer::Freeze | Halts the timer temporarily. |
ITimerService::GetNamedTimer | Gets the named timer. |
ITimer::GetTime | Gets the current time of the timer. |
ITimerSink::OnTimer | Called by the timer service for a scheduled event. |
ITimerEx::SetMode | Sets the visibility mode of the timer. |
ITimerService::SetNamedTimerReference | Replaces the named timer's reference timer with a new reference timer. |
ITimer::Unadvise | Cancels an event request. |