see \clock_gettime().
