CompuServe Messages

#TIME & IDCMP

    16-Jun-90 01:18:38
Sb: #108274-#TIME & IDCMP
Fm: John Draper 76703,4322
To: Francis Kostella 72220,3117
Fran, There are a few very easy ways to delay things on the Amiga, and a few that aren't so easy. It really depends on what you need when you are deciding what to use. Here are a few areas to look at… Easy: Delay() – this is a Dos call. Caution, do not use it if there is any chance you might call it with a zero delay value (some say not to call it with a small value at all. WaitTOF() – this is an Intuition call, and waits for Top Of Frame (video frame). Handy for syncronizing things to video, or as a way to delay something that runs too fast. If it works for your application, great, but often you will find that it cr4eates too long or too short a delay. Not so easy: Intuiticks. These can be easy or difficult, depending on whether you are already receiving IntuiMessages or not. timer.device – This is usually the best way to implement accurate delays or timing of events if your application is oin need of a number of different delays, possibly all happening at once. Basically, you open the timer device and treat it like any other IO device, sending it commands. Hope this points you in the right directions. -larry