clock() etc. in linux

secs = (clock() – ut0)/(double)CLOCKS_PER_SEC;    will overflow every72 minutes in 32 bit machine.

clock_gettime(CLOCK_REALTIME, tp) may be most modern, but needs -lrt  when linking.