Time (UNIX)
From Wikipedia, the free encyclopedia
最も簡単な利用方法は、実行時間を計測したいコマンドの前に、timeを付けるだけである。
time ls
指定されたコマンド(ここではlsコマンド)の実行完了後に、timeは実行に要した時間、具体的にはUser CPU時間、System CPU時間、Real CPU時間を返す。
$ time host wikipedia.org wikipedia.org has address 103.102.166.224 wikipedia.org mail is handled by 50 mx2001.wikimedia.org. wikipedia.org mail is handled by 10 mx1001.wikimedia.org. host wikipedia.org 0.04s user 0.02s system 7% cpu 0.780 total $