how i calculate real time in a program of c ....
__________________________start=clock(); ----------------------------end=clock();
diff=end-start;
start=124682129.0000000 end =124682129.0000000 result value of diff is 0.0000000000000000000000
i am sorting an array i want to calculate time before sort and end of sort in gcc compiler ......
how i can calculate these times? real time execution time