|See Also||pause , clock , time|
sleepare ignored. If option is the string "on" (or "ON"), subsequent calls to
sleepare not ignored. If option is not present, execution is suspended until the user selects a continue button in a special dialog that is displayed.
Will print the numbers 1 though 5 at a rate of one number per second.
for i = 1 to 5 begin
You can use the
sleepfunction when creating animated graphics. The following example animates a sine wave though one cycle.
theta = 0. : .1 : 2 * pi
for i = 0 to 50 begin
alpha = 2 * pi * i / 50.
gplot(theta, sin(alpha + theta))
gxaxis("offlin", 0., 2 * pi);
gyaxis("offlin", -1., 1.)
sleep. If in Mlmode you enter
O-Matrix will print the numbers 1 though 5 at a rate of one number per second.
for i = 1:5
sleepfunction to the "on" state.