2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Delay CLI command.
9 /******************************************************************************
14 Delay (n) [TICK | TICKS]
26 Wait a certain amount of ticks clock (1/50 of a second).
30 TICK=TICKS -- time unit in ticks to wait for.
34 An arbitrary limit is set to 15000 ticks to wait for.
44 ******************************************************************************/
47 #include <proto/dos.h>
48 #include <proto/exec.h>
55 struct RDArgs
*rda
= ReadArgs("TIME/N,TICK=TICKS/S", args
, NULL
);
59 LONG ticks
= *((LONG
*)args
[0]);
61 if (ticks
>= 0 && ticks
<= TICKS_PER_SECOND
* 300)