]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/openmp-runtime-library-routines/ompgetwtime.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompgetwtime.rst
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 .. _omp_get_wtime:
7
8 omp_get_wtime -- Elapsed wall clock time
9 ****************************************
10
11 Description:
12 Elapsed wall clock time in seconds. The time is measured per thread, no
13 guarantee can be made that two distinct threads measure the same time.
14 Time is measured from some "time in the past", which is an arbitrary time
15 guaranteed not to change during the execution of the program.
16
17 C/C++:
18 .. list-table::
19
20 * - *Prototype*:
21 - ``double omp_get_wtime(void);``
22
23 Fortran:
24 .. list-table::
25
26 * - *Interface*:
27 - ``double precision function omp_get_wtime()``
28
29 See also:
30 :ref:`omp_get_wtick`
31
32 Reference:
33 :openmp:`4.5`, Section 3.4.1.