Chinaunix

标题: 如何计算从第一步到第四步的运行时间呢 [打印本页]

作者: 20060502156    时间: 2012-07-19 09:28
标题: 如何计算从第一步到第四步的运行时间呢
  1. root@ubd1204x64v3# ssh localhost-l user
  2. user@localhost's password:
  3. user@ubd1204x64v3:~$exit
  4. root@ubd1204x64v3#
复制代码
如何计算从第一步到第四步的运行时间,我知道运行一个命令可以用time -p command



作者: dn833    时间: 2012-07-19 09:56
这3条命令写成一个脚本,然后time 脚本就可以了
作者: ulovko    时间: 2012-07-19 10:07
  1. man time

  2. DESCRIPTION
  3.      The time utility executes and times the specified utility.  After the
  4.      utility finishes, time writes to the standard error stream, (in seconds):
  5.      the total time elapsed, the time used to execute the utility process and
  6.      the time consumed by system overhead.
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2