top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
341 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 LinkedIn Share Button

...