1 #include "time32.h" 2 #include <time.h> 3 __clock_getres_time32(clockid_t clk,struct timespec32 * ts32)4int __clock_getres_time32(clockid_t clk, struct timespec32 *ts32) 5 { 6 struct timespec ts; 7 int r = clock_getres(clk, &ts); 8 if (!r && ts32) { 9 ts32->tv_sec = ts.tv_sec; 10 ts32->tv_nsec = ts.tv_nsec; 11 } 12 return r; 13 } 14