i want to calculate the exact run time of my program in seconds....i used clock() function of time.h library...
what i did is that i made two clock_t type objects...
initialized one of them in the start of main() function and the other in the end..
and calculated the difference..as shown...
main()
{
clock_t start,end;
start1=clock();
....
....
....
my code.
....
...
...
end=clock();
cout<<start-end<<endl;
}
but i want to know what does that difference shows...what's its unit...seconds..milliseconds..microseconds..or depends on clock frequency...???
Am using Dev-c++...