Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
[Solved] MacOS X - Stopwatch/Timer for command line excutions
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter
June 15, 2014 4:30 AM
Mac, as does Linux, offers a quick and dirty way to "time" the execution of a command on the command line (CLI).
I needed this to time the speed of certain compression programs like Zip, 7Zip, and WinRAR.
Basic format:
time <your commands>
and produces what your "commands" normally would produce, followed by something like:
real 0m0.014s
user 0m0.002s
sys 0m0.004s
The first line (real) is the time elapsed while executing your commands.
Example:
time ls -l
Which lists the file in long format of your current directory.