Reverted to clock_gettime, bit correctly
Added link to pthread