The Geek Stuff posted Linux Time Command Examples
There are times when you might want to profile your program on parameters like:Linux Time Command Examples
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.