Added clock_gettime function