Linux Time Command Examples
Posted on: 01/26/2012 11:36 AM

The Geek Stuff posted Linux Time Command Examples

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
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.

Printed from Linux Compatible (