Track the time a command takes in UNIX/LINUX?

前端 未结 3 1354
终归单人心
终归单人心 2020-12-24 00:01

In UNIX/LINUX, is there an easy way to track the time a command takes?

3条回答
  •  离开以前
    2020-12-24 00:42

    Use

    /usr/bin/time 
    

    instead that the time builtin in the bash: it is more configurable AFAIK.

    e.g. /usr/bin/time --format=' \n---- \nelapsed time is %e'ls
    

提交回复
热议问题