Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GetIt Reference Guide - syntax: n_ontime([<secondsn> [,<procedurec>] http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: N_ONTIME([<secondsN> [,<procedureC>]

Calls user-defined procedure after #seconds has elapsed (up to 65535).

N_ONTIME() with no parameters returns time remaining until event.

Example

* terminate deom program after 10 minutes
N_ONTIME(600, "exitdemo")
 ...
PROCEDURE exitdemo
CLEAR ALL
QUIT
RETURN

Notes

The event specified by N_ONTIME can be scheduled to occur up to 65535
seconds in the future (about 18 hours).

It works similarly to N_ONTICK except that once the ONTIME event occurs, it
is removed from the event table.  However, you can issue another N_ONTIME to
reschedule an event.

N_ONTIME is active at all times. Thus, it should be disabled with
N_ONTIME(0) when not needed.

N_ONTIME() with no parameters, returns the number of seconds remaining until
the Event Procedure is called.

N_ONTIME(<secondsN>) with no second parameter alters the time interval
without changing the procedure.

See Also: N_ONTICK

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson