Personal tools
You are here: Home Docs Help! Reference Manuals Introduction to Linux Processes Managing processes How long does it take?

4.3.2. How long does it take?

Up one level

-

Bash offers a built-in time command that displays how long a command takes to execute. The timing is highly accurate and can be used on any command. In the example below, it takes about a minute and a half to make this book:

tilly:~/xml/src> time make
Output written on abook.pdf (222 pages, 1619861 bytes).
Transcript written on abook.log.

real 1m41.056s
user 1m31.190s
sys 0m1.880s

The GNU time command in /usr/bin (as opposed to the shell built-in version) displays more information that can be formatted in different ways. It also shows the exit status of the command, and the total elapsed time. The same command as the above using the independent time gives this output:

tilly:~/xml/src> /usr/bin/time make
Output written on abook.pdf (222 pages, 1595027 bytes).
Transcript written on abook.log.

Command exited with non-zero status 2
88.87user 1.74system 1:36.21elapsed 94%CPU
(0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (2192major+30002minor)pagefaults 0swaps

Refer again to the Info pages for all the information.

Linux Rackmount Server
For high quality performance Multi-core RAID servers at unbeatable prices with ongoing maintenance and support.
IT Support Bristol
IT Services and IT Support provider based in Bristol. Computer maintenance with server support as standard.
Mobile broadband
Compare mobile broadband deals and offers at the UK's best mobile broadband comparison site
Best Mobile Broadband Deals
Compare wireless mobile internet deals on Mobile Broadband Genie, the independent UK price comparison website.
IT Support
Award winning IT Support from help4IT, providing all the IT services of a dedicated IT department to businesses in London and the UK.
Call 0800 043 4448.
Introduction to Linux
Comprehensive 5 day introductory course in London, 8-12 March/10-14 May. Covers installation, command-line, Gnome, power tools, Shell scripting, Office Applications and more.
Broadband Packages
Compare broadband packages in your area with Broadband Choices, the UK's leading Ofcom-accredited broadband comparison calculator
IT Support Bristol
Netzen provide business IT Support for London, Bristol & Bath, Supporting Microsoft, Cisco, Linux & Mac
IT Support
For The Best IT Support In London Make Our IT Department Your IT Department. Microsoft Gold Certified Partner.
IT Support London
IT Services and IT Support London and Microsoft Small Business Specialist.
IT Support London
Efficent IT Support & Hosted Services for SME businesses in and around greater London.
IT SERVICES
Award winning IT Services from London provider Wavex offering support, advice, and training
IT Support
A full range of services, from hosting, data recovery and day-to-day support through to Board-level IT advice through our virtual IT Director offering.
Data Recovery
Professional data recovery services