Closed iemejia closed 11 years ago
@iemejia Merged in. Thanks! :+1:
@iemejia Sorry, I had to rollback your changes. It gives compilation error on Ubuntu. _POSIX_TIMERS
seems to be defined on Ubuntu/Linux too.
If you can fix it such that clock_gettime
is used only on Mac/FreeBSD, give me a pull request. :smiley:
Fixed time functions to work also on MacOS/FreeBSD.
No nanosecond precision supported for MacOS/FreeBSD, for more info see:
http://laclefyoshi.blogspot.com/2011/05/getting-nanoseconds-in-c-on-freebsd.ht http://www.wanderinghill.com/wp/?p=29