Question: Any ways can count the exact time of some steps of an algorithm, (precisely)



If I want to calculate and know the exact time duration of running step 8, do the current algorithm, 

st := time();

elapsed_time := (time() - st)*sec

is good enough? precise enough? or accurate enough? 

Any other recommendations? 

Please Wait...