From WikiChip
Timer
Revision as of 02:43, 10 April 2014 by Inject (talk | contribs)

A timer is a device that increments or decrements a counter at a fixed frequency. Computer timers are often used to check against some set value; when the counter's value matches that value some specific action is taken. Most systems typically have at least one hardware timer that's used to implement a larger set of software timers.

Overview

New text document.svg This section is empty; you can help add the missing info by editing this page.

Hardware timers

New text document.svg This section is empty; you can help add the missing info by editing this page.

Software timers

New text document.svg This section is empty; you can help add the missing info by editing this page.

Alternatives

New text document.svg This section is empty; you can help add the missing info by editing this page.

API support

Main article: List of timer APIs


Timers play a crucial rule in many applications for a variety of jobs such as periodical checking of information. Many programming languages provide easy ways of scheduling timer tasks. Most operating systems also offer a way of setting up timer tasks. For example, on POSIX systems one could setup an alarm which would generate the SIGALRM signal after a specified number of seconds. Likewise, on Windows, the SetTimer Win32 API function can be used to call a callback function after a specific amount of time.

See also