How do I stamp two times t1 and t2 and get the difference in milliseconds in C?
Also making aware of interactions between clock() and usleep(). usleep() suspends the program, and clock() only measures the time the program is running.
If might be better off to use gettimeofday() as mentioned here