home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_07
/
2n07012a
< prev
next >
Wrap
Text File
|
1991-06-04
|
556b
|
27 lines
#ifndef TIMERS_H
#define TIMERS_H
typedef unsigned long ULONG;
typedef void (*TIMER_FIRE)(struct TIMER *);
typedef struct TIMER
{
struct TIMER *Next;
int EventId;
ULONG Interval;
ULONG ThisTime;
ULONG LastTime;
TIMER_FIRE Fire;
} TIMER;
void InitTimerPackage(HANDLE Instance, TIMER_FIRE Func);
TIMER *TimerCreate(int EventId);
void TimerDelete(TIMER *Timer);
int TimerStart(TIMER *Timer, ULONG Interval);
void TimerStop(TIMER *Timer);
#endif