This component is based on one I found on the web somewhere but have since misplaced. If it was your unit then I am sorry you got no credit but I can't remember who you where. E-mail me and I will rectify this. The main reason I wrote this is that I wanted to change the timer thread priority and anyway I like doing things my way.
This unit is freeware, use it as you will. I ask only that if you modify the code you send me a copy; as I will hopefully learn something new.
I have no idea how the windows API multimedia timer works (if you do please drop me a line as I'd like to know but I'm too busy [read lazy] right now to find out), but it looks a bit funkier than the bog standard Delphi timer.
| Methods | |
| Pause | Pauses the timer |
| Resume | Restarts the timer |
| Properties | |
| Enable | Sets the timer running |
| Delay | Sets the time between each timer tick |
| Resolution | Sets the resolution of the timer, this is a parameter of the MM API call and I don't really know what it does |
| TimerPriority | Sets the priority of the timer thread |
| Ticks | Gives the number of timer ticks since timer enabled |
| MilliSeconds | Gives the number of millisecond since timer enabled |
| Events | |
| OnTimer | Event generated by each timer tick |