]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: SLEEP, delayed execution | |
7 | ||
8 | .. _sleep: | |
9 | ||
10 | SLEEP --- Sleep for the specified number of seconds | |
11 | *************************************************** | |
12 | ||
13 | .. function:: SLEEP(SECONDS) | |
14 | ||
15 | Calling this subroutine causes the process to pause for :samp:`{SECONDS}` seconds. | |
16 | ||
17 | :param SECONDS: | |
18 | The type shall be of default ``INTEGER``. | |
19 | ||
20 | Standard: | |
21 | GNU extension | |
22 | ||
23 | Class: | |
24 | Subroutine | |
25 | ||
26 | Syntax: | |
27 | .. code-block:: fortran | |
28 | ||
29 | CALL SLEEP(SECONDS) | |
30 | ||
31 | Example: | |
32 | .. code-block:: fortran | |
33 | ||
34 | program test_sleep | |
35 | call sleep(5) | |
3ed1b4ce | 36 | end |