Adding function to convert from time_t to clock_t.