Page 1 of 1
Forum

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!



Linux - Stopwatch/T...
 
Share:
Notifications
Clear all

[Solved] Linux - Stopwatch/Timer for command line excutions

1 Posts
1 Users
0 Reactions
4,024 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

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.


   
ReplyQuote
Share: