Navigation

Operators and Keywords

Function List:

C++ API

Built-in Function: pause ()
Built-in Function: pause (n)

Suspend the execution of the program for n seconds.

n is a positive real value and may be a fraction of a second.

If invoked without an input arguments then the program is suspended until a character is typed.

The following example prints a message and then waits 5 seconds before clearing the screen.

fprintf (stderr, "wait please...\n");
pause (5);
clc;

See also: kbhit, sleep.

Package: octave