I have used the following code to calculate the exection time of the searching function in milliseconds.
sBegin = clock();
searching();
sEnd = clock();
searchingTime = ((float)(sEnd-sBegin)/CLOCKS_PER_SEC)*1000;
The result is for example 952.000000. I want to know why all the digits after the decimal are always zero? How can I solve it? Is there a better way to calculate the execution time in C language?