Ryusai's Homepage
トップページ > Linuxコマンド > time

time : コマンドの実行時間を計測する

構文
time command

説明
コマンドの実行時間を測定するコマンド。
timeは引数に渡されたコマンドcommandを実行し、その実行に要した時間を計測して標準出力へ出力する
realはcommandの実行(呼び出しから終了まで)にかかった実時間
userはユーザモード(ユーザプログラムを実行するモード)で消費するCPU時間
sysはシステムモード(OSのプログラムを実行するモード)で消費するCPU時間

使用例
Icarus verilogでのシミュレーション実行時間を計測
$ time vvp hoge
VCD info: dumpfile test.vcd opened for output.
*** Write Transaction Start ***
*** Write Transaction End ***
*** Read Transaction Start ***
*** Read Transaction End ***
*** Write Transaction Start ***
Timeout Error
Simulation Stopped!

real    0m0.016s
user    0m0.010s
sys     0m0.000s




サイトマップこのサイトについてお問い合わせ |
Copyright (C) 2006-2008 Ryusai's Homepage All rights reserved