Timers
Timers
Timers A timer is an internal routine that repeatedly measures a specified interval, in milliseconds.

Overviews

About Timers

This topic describes how to create, identify, set, and delete timers.

Using Timers

This topic shows how to create and destroy timers, and how to use a timer to trap mouse input at specified intervals.

Functions

KillTimer

The KillTimer function destroys the specified timer.

QueryPerformanceCounter

The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter.

QueryPerformanceFrequency

The QueryPerformanceFrequency function retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running.

SetTimer

The SetTimer function creates a timer with the specified time-out value.

TimerProc

The TimerProc function is an application-defined callback function that processes WM_TIMER messages. The TIMERPROC type defines a pointer to this callback function. TimerProc is a placeholder for the application-defined function name.

Notifications

WM_TIMER

The WM_TIMER message is posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View