aboutsummaryrefslogtreecommitdiff
path: root/documentation/manual-pages/ja/man1/time.1
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/manual-pages/ja/man1/time.1')
-rw-r--r--documentation/manual-pages/ja/man1/time.1124
1 files changed, 124 insertions, 0 deletions
diff --git a/documentation/manual-pages/ja/man1/time.1 b/documentation/manual-pages/ja/man1/time.1
new file mode 100644
index 0000000000..c67d8a3c4f
--- /dev/null
+++ b/documentation/manual-pages/ja/man1/time.1
@@ -0,0 +1,124 @@
+.\" Copyright (c) 1980, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by the University of
+.\" California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\" may be used to endorse or promote products derived from this software
+.\" without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" @(#)time.1 8.1 (Berkeley) 6/6/93
+.\" %FreeBSD: src/usr.bin/time/time.1,v 1.23 2004/07/02 22:22:32 ru Exp %
+.\" $FreeBSD$
+.\"
+.Dd June 6, 1993
+.Dt TIME 1
+.Os
+.Sh 名称
+.Nm time
+.Nd コマンドの実行時間の計測
+.Sh 書式
+.Nm
+.Op Fl al
+.Op Fl h | Fl p
+.Op Fl o Ar file
+.Ar utility Op Ar argument ...
+.Sh 解説
+.Nm
+ユーティリティは、指定された
+.Ar utility
+を実行し、処理に要した時間を計測します。
+.Ar utility
+の実行を終えると、
+実行開始から実際に経過した時間、
+.Ar utility
+の実行に要した時間、
+システムのオーバヘッドに費された時間を、(秒単位で) 標準エラー出力に出力します。
+.Pp
+使用可能なオプションは次の通りです:
+.Bl -tag -width indent
+.It Fl a
+.Fl o
+が使用されている場合、上書きするのではなく、指定されたファイルに追加します。
+.Fl o
+が使用されていない場合には、このオプションは効果ありません。
+.It Fl h
+人に優しい書式で時刻を表示します。
+時刻は、分や時間等の適切な書式で表示されます。
+.It Fl l
+デフォルトの出力に加え、
+.Em rusage
+構造体の内容を表示します。
+.It Fl o Ar file
+出力を標準エラー出力ではなく
+.Ar file
+に対して行います。
+.Ar file
+が存在し、
+.Fl a
+フラグが指定されなかった場合、ファイルは上書きされます。
+.It Fl p
+POSIX.2 に従った出力を、
+.Nm
+にさせます (各時間が各行に表示されます)。
+.El
+.Pp
+シェルによっては、本ユーティリティと似たまたは同じ、組み込みの
+.Nm
+コマンドを提供しているものがあります。
+.Xr builtin 1
+マニュアルページを参照してください。
+.Sh 環境変数
+.Ev PATH
+環境変数は、名前に
+.Ql /
+が 1 個も含まれない場合、指定された
+.Ar utility
+を見付けるために使用されます。
+.Sh 診断
+.Ar utility
+を成功裏に時間計測できた場合、コマンドの終了状態が返されます。
+.Ar utility
+が異常終了した場合、警告メッセージが標準エラー出力に出力されます。
+.Ar utility
+が見付かったものの実行できなかった場合、終了状態は 126 になります。
+.Ar utility
+が見付からなかった場合、終了状態は 127 になります。
+.Nm
+が他のエラーとなった場合、終了状態は 1 以上 125 以下となります。
+.Sh 関連項目
+.Xr builtin 1 ,
+.Xr csh 1 ,
+.Xr getrusage 2 ,
+.Xr wait 2
+.Sh 規格
+.Nm
+ユーティリティは、
+ISO/IEC 9945-2:1993 (``POSIX'') に従っていると期待されています。
+.Sh 歴史
+.Nm
+ユーティリティは
+.At v3
+から登場しました。