<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="ja"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta name="author" content="magicant"> <meta name="description" content="Yash の times 組込みコマンドについて"> <title>Yash マニュアル: times 組込みコマンド</title> <link rel="Contents" href="../index.html" title="目次"> <link rel="Prev" href="test.html" title="Test 組込みコマンド"> <link rel="Next" href="trap.html" title="Trap 組込みコマンド"> <link rel="Stylesheet" href="../style.css"> <div class="breadcrumb"><a href="../index.html">目次</a> > <a rel="Up" href="index.html">組込みコマンド一覧</a></div> <h1>Times 組込みコマンド</h1> <p><dfn>Times 組込みコマンド</dfn>はシェルとシェルが起動したコマンドが消費した CPU 時間を表示します。 <h2 id="syntax">構文</h2> <ul> <li><code>times</code> </ul> <h2 id="description">説明</h2> <p>Times コマンドはシェルプロセスとその子プロセスが消費した CPU 時間を標準出力に出力します。一行目にシェルプロセス自身がユーザモードおよびシステムモードで消費した CPU 時間をそれぞれ表示します。二行目にシェルの全ての子孫プロセス (親プロセスが wait していないものを除く) がユーザモードおよびシステムモードで消費した CPU 時間をそれぞれ表示します。 <h2 id="options">オプション</h2> <p>なし <h2 id="operands">オペランド</h2> <p>なし <h2 id="exitstatus">終了ステータス</h2> <p>エラーがない限り times コマンドの終了ステータスは 0 です。 <h2 id="notes">補足</h2> <p>Times コマンドは<a href="../builtin.html#types">特殊組込みコマンド</a>です。