4.3.2.
How long does it take?
Up one level
-
Bash offers a built-in time command that displays how long a command takes to execute. The timing is highly accurate and can be used on any command. In the example below, it takes about a minute and a half to make this book:
tilly:~/xml/src> time make |
The GNU time command in /usr/bin (as opposed to the shell built-in version) displays more information that can be formatted in different ways. It also shows the exit status of the command, and the total elapsed time. The same command as the above using the independent time gives this output:
tilly:~/xml/src> /usr/bin/time make |
Refer again to the Info pages for all the information.

