The following example uses SLEEP to delay execution for five seconds:

sleep 5

The next example uses SLEEP to delay execution until 7:30 p.m. on the same day the program is running. If it’s already past 7:30 p.m., execution is delayed until that time the next day:

#define SLEEP_TIME "19:30:00"

if time( ) > SLEEP_TIME

   sleep until SLEEP_TIME, dtoc( date( ) + 1 ) 

else

   sleep until SLEEP_TIME 

endif

The last example uses SLEEP to delay execution until 11:59:59 p.m. on December 31, 1999 (SET DATE is AMERICAN):

sleep until "23:59:59", "12/31/99"