Apparently Mac OS doesn't implement clock_gettime Here's a hint on how to solve it http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x