Fuad Tabba | c588ecf | 2021-02-04 13:59:53 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <html> |
| 3 | <!-- Copyright (C) 1999-2015 Free Software Foundation, Inc. |
| 4 | |
| 5 | Permission is granted to copy, distribute and/or modify this document |
| 6 | under the terms of the GNU Free Documentation License, Version 1.3 or |
| 7 | any later version published by the Free Software Foundation; with the |
| 8 | Invariant Sections being "Funding Free Software", the Front-Cover |
| 9 | Texts being (a) (see below), and with the Back-Cover Texts being (b) |
| 10 | (see below). A copy of the license is included in the section entitled |
| 11 | "GNU Free Documentation License". |
| 12 | |
| 13 | (a) The FSF's Front-Cover Text is: |
| 14 | |
| 15 | A GNU Manual |
| 16 | |
| 17 | (b) The FSF's Back-Cover Text is: |
| 18 | |
| 19 | You have freedom to copy and modify this GNU Manual, like GNU |
| 20 | software. Copies published by the Free Software Foundation raise |
| 21 | funds for GNU development. --> |
| 22 | <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ --> |
| 23 | <head> |
| 24 | <title>The GNU Fortran Compiler: MCLOCK</title> |
| 25 | |
| 26 | <meta name="description" content="The GNU Fortran Compiler: MCLOCK"> |
| 27 | <meta name="keywords" content="The GNU Fortran Compiler: MCLOCK"> |
| 28 | <meta name="resource-type" content="document"> |
| 29 | <meta name="distribution" content="global"> |
| 30 | <meta name="Generator" content="makeinfo"> |
| 31 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 32 | <link href="index.html#Top" rel="start" title="Top"> |
| 33 | <link href="Option-Index.html#Option-Index" rel="index" title="Option Index"> |
| 34 | <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> |
| 35 | <link href="Intrinsic-Procedures.html#Intrinsic-Procedures" rel="up" title="Intrinsic Procedures"> |
| 36 | <link href="MCLOCK8.html#MCLOCK8" rel="next" title="MCLOCK8"> |
| 37 | <link href="MAXVAL.html#MAXVAL" rel="prev" title="MAXVAL"> |
| 38 | <style type="text/css"> |
| 39 | <!-- |
| 40 | a.summary-letter {text-decoration: none} |
| 41 | blockquote.smallquotation {font-size: smaller} |
| 42 | div.display {margin-left: 3.2em} |
| 43 | div.example {margin-left: 3.2em} |
| 44 | div.indentedblock {margin-left: 3.2em} |
| 45 | div.lisp {margin-left: 3.2em} |
| 46 | div.smalldisplay {margin-left: 3.2em} |
| 47 | div.smallexample {margin-left: 3.2em} |
| 48 | div.smallindentedblock {margin-left: 3.2em; font-size: smaller} |
| 49 | div.smalllisp {margin-left: 3.2em} |
| 50 | kbd {font-style:oblique} |
| 51 | pre.display {font-family: inherit} |
| 52 | pre.format {font-family: inherit} |
| 53 | pre.menu-comment {font-family: serif} |
| 54 | pre.menu-preformatted {font-family: serif} |
| 55 | pre.smalldisplay {font-family: inherit; font-size: smaller} |
| 56 | pre.smallexample {font-size: smaller} |
| 57 | pre.smallformat {font-family: inherit; font-size: smaller} |
| 58 | pre.smalllisp {font-size: smaller} |
| 59 | span.nocodebreak {white-space:nowrap} |
| 60 | span.nolinebreak {white-space:nowrap} |
| 61 | span.roman {font-family:serif; font-weight:normal} |
| 62 | span.sansserif {font-family:sans-serif; font-weight:normal} |
| 63 | ul.no-bullet {list-style: none} |
| 64 | --> |
| 65 | </style> |
| 66 | |
| 67 | |
| 68 | </head> |
| 69 | |
| 70 | <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> |
| 71 | <a name="MCLOCK"></a> |
| 72 | <div class="header"> |
| 73 | <p> |
| 74 | Next: <a href="MCLOCK8.html#MCLOCK8" accesskey="n" rel="next">MCLOCK8</a>, Previous: <a href="MAXVAL.html#MAXVAL" accesskey="p" rel="prev">MAXVAL</a>, Up: <a href="Intrinsic-Procedures.html#Intrinsic-Procedures" accesskey="u" rel="up">Intrinsic Procedures</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p> |
| 75 | </div> |
| 76 | <hr> |
| 77 | <a name="MCLOCK-_002d_002d_002d-Time-function"></a> |
| 78 | <h3 class="section">9.183 <code>MCLOCK</code> — Time function</h3> |
| 79 | <a name="index-MCLOCK"></a> |
| 80 | <a name="index-time_002c-clock-ticks"></a> |
| 81 | <a name="index-clock-ticks"></a> |
| 82 | |
| 83 | <dl compact="compact"> |
| 84 | <dt><em>Description</em>:</dt> |
| 85 | <dd><p>Returns the number of clock ticks since the start of the process, based |
| 86 | on the function <code>clock(3)</code> in the C standard library. |
| 87 | </p> |
| 88 | <p>This intrinsic is not fully portable, such as to systems with 32-bit |
| 89 | <code>INTEGER</code> types but supporting times wider than 32 bits. Therefore, |
| 90 | the values returned by this intrinsic might be, or become, negative, or |
| 91 | numerically less than previous values, during a single run of the |
| 92 | compiled program. |
| 93 | </p> |
| 94 | </dd> |
| 95 | <dt><em>Standard</em>:</dt> |
| 96 | <dd><p>GNU extension |
| 97 | </p> |
| 98 | </dd> |
| 99 | <dt><em>Class</em>:</dt> |
| 100 | <dd><p>Function |
| 101 | </p> |
| 102 | </dd> |
| 103 | <dt><em>Syntax</em>:</dt> |
| 104 | <dd><p><code>RESULT = MCLOCK()</code> |
| 105 | </p> |
| 106 | </dd> |
| 107 | <dt><em>Return value</em>:</dt> |
| 108 | <dd><p>The return value is a scalar of type <code>INTEGER(4)</code>, equal to the |
| 109 | number of clock ticks since the start of the process, or <code>-1</code> if |
| 110 | the system does not support <code>clock(3)</code>. |
| 111 | </p> |
| 112 | </dd> |
| 113 | <dt><em>See also</em>:</dt> |
| 114 | <dd><p><a href="CTIME.html#CTIME">CTIME</a>, <a href="GMTIME.html#GMTIME">GMTIME</a>, <a href="LTIME.html#LTIME">LTIME</a>, <a href="#MCLOCK">MCLOCK</a>, <a href="TIME.html#TIME">TIME</a> |
| 115 | </p> |
| 116 | </dd> |
| 117 | </dl> |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | </body> |
| 125 | </html> |