Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to measure the execution time of a process that I call via the command line (i.e., I want to find out how long it takes to for the process to finish). Is there any command that I can add to the command calling the process that will achieve this?

share|improve this question

migrated from stackoverflow.com Jul 17 '11 at 12:35

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers 2

Add time before the command you want to measure.

share|improve this answer
    
Thank you, that helped a lot! –  user848635 Jul 17 '11 at 12:34
1  
@ninjalj, can you provide more information on what the real, user, and sys times are that this command returns? –  WarriorIng64 Jul 17 '11 at 20:22
add comment

You can use time:

time ls -R
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.