The missing clock_gettime function ported to Mac OS X/macOS and packaged as a library.
Begin by checking out the source code:
$ git clone https://github.com/aunali1/gettime_osx
$ cd gettime_osx
To compile the library, run the following command:
$ make all
The compiled library will be available in the bin/ directory:
$ ls bin/
libgettime.dylib
All files within this repository are subject to the terms outlined in the LICENSE file.