top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Linux: Why the same binary shows different different output for the time comand ?

0 votes
82 views

I wrote and compiled c code. I am using command "time a.out" . Every time output comes different.

$time ./a.out

real 0m0.002s
user 0m0.001s
sys 0m0.001s
-bash-3.2$ time ./a.out

real 0m0.001s
user 0m0.001s
sys 0m0.001s
-bash-3.2$ time ./a.out

real 0m0.001s
user 0m0.000s
sys 0m0.001s

Can someone please explain why these different different output come ?

posted Jul 5, 2014 by Ganesh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...