Guides 11791 Published by

The Geek Stuff posted Linux Time Command Examples



There are times when you might want to profile your program on parameters like:

Time taken by program in user mode
Time taken by program in kernel mode
Average memory usage by the program
etc
On Linux we have a utility ‘time’ that is designed specifically for this purpose. The utility ‘time’ takes a program name as an input and displays information about the resources used by the program. Also, if the command exists with non-zero status, this utility displays a warning message and exit status.
  Linux Time Command Examples