Cairn Timer.


Contact the author.

Introduction

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.


Discription

Methods
PausePauses the timer
ResumeRestarts the timer
Properties
EnableSets the timer running
DelaySets the time between each timer tick
ResolutionSets the resolution of the timer, this is a parameter of the MM API call and I don't really know what it does
TimerPrioritySets the priority of the timer thread
TicksGives the number of timer ticks since timer enabled
MilliSecondsGives the number of millisecond since timer enabled
Events
OnTimerEvent generated by each timer tick

CAIRN RESEARCH LTD,
UNIT 3G,
BRENTS SHIPYARD INDUSTRIAL ESTATE,
FAVERSHAM,
KENT,
ME13 7DZ, U.K.
TEL: +44 (0)1795 590140,
FAX: +44 (0)1795 590150,
SALES EMAIL: SALES@CAIRNWEB.COM
TECHNICAL EMAIL: TECH@CAIRNWEB.COM
URL: HTTP://WWW.CAIRNWEB.COM