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.
6 .. index:: MCLOCK, time, clock ticks, clock ticks
10 MCLOCK --- Time function
11 ************************
13 .. function:: MCLOCK()
15 Returns the number of clock ticks since the start of the process, based
16 on the function ``clock(3)`` in the C standard library.
19 The return value is a scalar of type ``INTEGER(4)``, equal to the
20 number of clock ticks since the start of the process, or ``-1`` if
21 the system does not support ``clock(3)``.
30 .. code-block:: fortran