After compiling my code in C, I use “time ./main” from the terminal (Mac OS X) and get
real 0m0.004s
user 0m0.001s
sys 0m0.002s
But using <time.h>
as described here, I get an elapsed time of 0.000217
seconds. So I’m just wondering how these two measurements differ.