5 #if defined(_SC_CLK_TCK) 6 #define TIMES_TICKS_PER_SEC sysconf(_SC_CLK_TCK) 8 #define TIMES_TICKS_PER_SEC CLK_TCK 10 #define TIMES_TICKS_PER_SEC HZ 11 #else // !CLK_TCK && !_SC_CLK_TCK && !HZ 12 #define TIMES_TICKS_PER_SEC 60 13 #endif // !CLK_TCK && !_SC_CLK_TCK && !HZ 23 clock_t ret =
times(&now);
24 if (ret == (clock_t)(-1))
25 now.tms_utime = now.tms_stime = now.tms_cutime = now.tms_cstime = ret = 0;
unsigned int get_ticks(unsigned char restart_value)
return an unsigned int which represents the elapsed processor time in milliseconds since some constan...
#define TIMES_TICKS_PER_SEC