⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 times.html

📁 IEEE 1003.1-2003, Single Unix Specification v3
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title>times</title></head><body bgcolor="white"><basefont size="3"> <a name="times"></a> <a name="tag_04_142"></a><!-- times --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright &copy; 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_04_142_01"></a>NAME</h4><blockquote>times - write process times</blockquote><h4><a name="tag_04_142_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><code><tt>times</tt></code></p></blockquote><h4><a name="tag_04_142_03"></a>DESCRIPTION</h4><blockquote><p>The <i>times</i> utility shall write the accumulated user and system times for the shell and for all of its child processes, inthe following POSIX locale format:</p><pre><tt>"%dm%fs %dm%fs\n%dm%fs %dm%fs\n", &lt;</tt><i>shell user minutes</i><tt>&gt;,    &lt;</tt><i>shell user seconds</i><tt>&gt;, &lt;</tt><i>shell system minutes</i><tt>&gt;,    &lt;</tt><i>shell system seconds</i><tt>&gt;, &lt;</tt><i>children user minutes</i><tt>&gt;,    &lt;</tt><i>children user seconds</i><tt>&gt;, &lt;</tt><i>children system minutes</i><tt>&gt;,    &lt;</tt><i>children system seconds</i><tt>&gt;</tt></pre><p>The four pairs of times shall correspond to the members of the <a href="../basedefs/sys/times.h.html"><i>&lt;sys/times.h&gt;</i></a> <b>tms</b> structure (defined in the Base Definitions volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap13.html#tag_13">Chapter 13, Headers</a>) as returned by <a href="../functions/times.html"><i>times</i>()</a>: <i>tms_utime</i>, <i>tms_stime</i>, <i>tms_cutime</i>, and <i>tms_cstime</i>,respectively.</p></blockquote><h4><a name="tag_04_142_04"></a>OPTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_05"></a>OPERANDS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_06"></a>STDIN</h4><blockquote><p>Not used.</p></blockquote><h4><a name="tag_04_142_07"></a>INPUT FILES</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_08"></a>ENVIRONMENT VARIABLES</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_09"></a>ASYNCHRONOUS EVENTS</h4><blockquote><p>Default.</p></blockquote><h4><a name="tag_04_142_10"></a>STDOUT</h4><blockquote><p>See the DESCRIPTION.</p></blockquote><h4><a name="tag_04_142_11"></a>STDERR</h4><blockquote><p>The standard error shall be used only for diagnostic messages.</p></blockquote><h4><a name="tag_04_142_12"></a>OUTPUT FILES</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_13"></a>EXTENDED DESCRIPTION</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_14"></a>EXIT STATUS</h4><blockquote><p>Zero.</p></blockquote><h4><a name="tag_04_142_15"></a>CONSEQUENCES OF ERRORS</h4><blockquote><p>Default.</p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_04_142_16"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_17"></a>EXAMPLES</h4><blockquote><pre><b>$</b> <tt>times</tt><b>0m0.43s 0m1.11s8m44.18s 1m43.23s</b></pre></blockquote><h4><a name="tag_04_142_18"></a>RATIONALE</h4><blockquote><p>The <i>times</i> special built-in from the Single UNIX Specification is now required for all conforming shells.</p></blockquote><h4><a name="tag_04_142_19"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_04_142_20"></a>SEE ALSO</h4><blockquote><p><a href="xcu_chap02.html#tag_02_14"><i>Special Built-In Utilities</i></a></p></blockquote><h4><a name="tag_04_142_21"></a>CHANGE HISTORY</h4><h4><a name="tag_04_142_22"></a>Issue 6</h4><blockquote><p>IEEE&nbsp;Std 1003.1-2001/Cor&nbsp;1-2002, item XCU/TC1/D6/9 is applied, changing text in the DESCRIPTION from: ``Write theaccumulated user and system times for the shell and for all of its child processes ...'' to: ``The <i>times</i> utility shall writethe accumulated user and system times for the shell and for all of its child processes ...''.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX &reg; is a registered Trademark of The Open Group.<br>POSIX &reg; is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -