Page 1 of 1

Linux – Stopwatch/Timer for command line excutions

Linux – Stopwatch/Timer for command line excutions

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.
Examples: "MacOS X - Your question", "MS Word - Your Tip or Trick".

Please note that switching to another language when reading a post will not work!
Posts will not have a translated counterpart.




RSS Feed

Home Forums Software Linux Software Linux – Stopwatch/Timer for command line excutions

This topic contains 0 replies, has 1 voice, and was last updated by  hans 5 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • 3696

    hans
    Keymaster

    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.

Viewing 1 post (of 1 total)



You must be logged in to reply to this topic.