AminetAminet
Search:
84478 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/time/delay.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Wait any number of ticks (1/50th sec.)
Author:Alex Carmona
Uploader:AmigaOne theworld net (Alex Carmona)
Type:util/time
Version:1.0
Architecture:ppc-amigaos >= 4.0.0
Date:2006-06-25
Download:http://aminet.net/util/time/delay.lha - View contents
Readme:http://aminet.net/util/time/delay.readme
Downloads:990

Delay v1.0 - 24.06.2006 - Freeware by Alex Carmona


Description:

Delay, waits for a number of "ticks".
(1 tick = 0.02 second / 1 second = 50 ticks).

The primary use for it is to delay commands in scripts, when a shorter wait
than 1 second is desirable, for example in a "Skip back" loop.

To minimize loading time and avoid repeated disk accesses during loops, it's
best to make the Delay command resident.


Usage:

Delay TICKS/N

For example to pause a script for 1/10th of a second, use 'Delay 5'.

Acceptable values for TICKS are from 0 to 2147483647 (498 days)

To keep the behavior consistent with C:Wait, if the ticks argument is omitted
it waits for 1 tick.

Delay can be interrupted with Ctrl-C.

It's also possible to achieve the same result by using...
rx "Delay(n)"
where 'n' is the number of ticks.
The drawbacks of using the rexx command are that the rexxmaster server has
to be running, it requires more overhead, and it can't be stopped with Ctrl-C.


--
Amiga... Duh!




Contents of util/time/delay.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4407    5061  87.1% -lh5- 5bd2 Jun 24 20:34 Delay.info
[generic]                 2276    4500  50.6% -lh5- 838d Jun 24 19:26 Delay/Delay
[generic]                  432     797  54.2% -lh5- 2fe7 Jun 24 19:26 Delay/Delay.c
[generic]                  581     987  58.9% -lh5- fad3 Jun 24 20:44 Delay/Delay.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files    7696   11345  67.8%            Jun 25 14:25

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>