home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
Programme_zum_Heft
/
Programmieren
/
Kurztests
/
PascalPCQ
/
Include
/
Utils
/
TimerUtils.i
< prev
Wrap
Text File
|
1990-08-28
|
919b
|
32 lines
{
TimerUtils.i
This file declares CreateTimer, WaitTimer, and DeleteTimer.
They allow you to use the timer.device with relatively little
overhead. Note that, unlike the examples from the ROM Kernel
Manual, these routines use the VBlank unit. Therefore they
require much less overhead, but you should not use these routines
for times of less than half a second.
The source for these routines is in Runtime/Extras.
}
{$I "Include:Exec/Ports.i"}
{$I "Include:Devices/Timer.i"}
Function CreateTimer : TimeRequestPtr;
External;
Function SetTimer(WhichTimer : TimeRequestPtr;
Seconds, Microseconds : Integer) : MsgPortPtr;
External;
Procedure WaitTimer(WhichTimer : TimeRequestPtr;
Seconds, Microseconds : Integer);
External;
Procedure GetSysTime(WhichTimer : TimeRequestPtr; VAR TV : TimeVal);
External;
Procedure DeleteTimer(WhichTimer : TimeRequestPtr);
External;