I use this to mesure elapsed time :
const clock_t begin_time = clock();
// code here
cout << float( clock () - begin_time ) /  CLOCKS_PER_SEC;   //return 1.234
float var = ( clock () - begin_time ) /  CLOCKS_PER_SEC;
cout << var;                                                //return 1
Please explain me i don't understand what is going on.
EDIT : why the printed var doesn't have the ".234" ?
 
    