thafaker.crabdance.com

Welcome to my vintage Webserver with ftp; Files and Stuff for ms-dos, c64, amiga, howtos, classic mac

Measure elapsed Time Of Terminal Command

Date: [18th Aug 2024]
Categories: [howto], [linux]

If you want to measure the execution time of a process that you call via the command line (i.e., you want to find out how long it takes to for the process to finish). there is a simple command that one can add to the command calling the process that will achieve this?

I want to find out how long it takes to compile the kernel of that webserver you are reading these lines.

[Solution] Add time before the command you want to measure. For example: time make -j4 zImage to compile the kernel as zImage for ARM device.

The output will look like:

real 74m5,145s
user 252m8,890s
sys 14m13,640s