Time a Compilation in Linux
Time is a part of the bash shell and is a very useful program. With it you can easily determine the time it takes your machine to complete any shell task. The syntax depends on the bash command.
for a simple command like cd, the syntax is:
time cd
for a series of commands separated by &&, the syntax is:
time { cd && ls; }
Timing the amount of time it takes to configure and build an application is probably the best example of this feature. For example:
time { ./configure && make depend && make; }
Another great example is using time with Locate to determine seek time. For example:
time locate manual.pdf
About this entry
You’re currently reading “Time a Compilation in Linux,” an entry on Well Documented
- Published:
- December 19, 2009 / 16:49
- Category:
- Apple, Linux, Short Work
- Tags:
No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]