In UNIX/LINUX, is there an easy way to track the time a command takes?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
Yes, use
time <command>
, such asConsult
man time
for more options. Link.Here is how a
sleep
of one second looks like, timed withtime
:Use
instead that the time builtin in the bash: it is more configurable AFAIK.