我有一个正在通过 dtach
运行的进程。我想测量时间并将其写入文件。我们将该过程称为 ls -l
。
我已经尝试了一些我在周围看到的东西,但无法让它发挥作用.. 谁能帮忙?
最佳答案
time
命令可以帮助您:
time dtach -c /tmp/foofoo -Ez ls -l
输出:
...
...
[EOF - dtach terminating]
real 0m0.005s
user 0m0.000s
sys 0m0.000s
关于linux - 如何测量dtach的时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23319826/