- The time command measures an application's execution time.
Consider the following example:
$ time APPLICATION
The time command executes APPLICATION. When APPLICATION is complete, the time command reports the real, system, and user time statistics to stderr and sends the APPLICATION's normal output to stdout.
$ time ls test.txt next.txt real 0m0.008s user 0m0.001s sys 0m0.003s
- The -o option will write the time statistics to a file:
$ /usr/bin/time -o output.txt ...