time
From Mac Guides
Revision as of 19:50, 10 June 2008; Eraserhead (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
time is a Terminal command used to measure the execution time of a given command. It prints results to standard out, broken down by real time, user time and system time.
[edit]
Examples
To measure the time of a search command:
time find ~ -name someFile
To measure the compile time of an application
time make all
To measure the search time of Spotlight:
time mdfind "Some Text"
[edit]
Man Page Excerpt
The time utility executes and times utility. After the utility finishes, time writes the total time elapsed, the time consumed by system overhead, and the time used to execute utility to the standard error stream. Times are reported in seconds.

