JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Setting a Timer's Interval

Setting a timer's interval—the time between Tick events—is easy; just set the timer's Interval property. This property is measured in milliseconds, and the minimum setting is 1. For an example of timers at work, take a look at "Handling Timer Events—and Creating an Alarm Clock."


In fact, Timer components use the computer's built-in clock interrupt, which only happens about 18 times a second in a PC, so you really can't get more frequent timer ticks than that, no matter what you set the Interval property to.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor