timers解析

Timers and Clocks Time.h Timing a function (Example 1) Time struct tm *localtime(const time_t *timer); Takes time since epoch, returns date struct tm *gmtime(const time_t *timer); Takes time since epoch, returns UTC char *asctime(const struct tm *timeptr); 26 byte date string in ascii char *ctime(const time_t *clock); 26 byte date string in ascii Example 2 What value should the ctime argument point to for the resulting string to be: Mon May 3 14:33:20 1976 POSIX XSI Measure running time using gettimeofday (Example 3) Measure running time using gettimeofday Gettimeofday limitations

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档