您的位置:首页 > 编程语言 > C语言/C++

C语言常用time时间结构体

2013-11-12 18:37 183 查看
9 struct timespec {

10 time_t tv_sec; /* seconds */

11 long tv_nsec; /* nanoseconds */

12 };

13 #endif

14

15 struct timeval {

16 time_t tv_sec; /* seconds */

17 suseconds_t tv_usec; /* microseconds */

18 };

20 struct timezone {

21 int tz_minuteswest; /* minutes west of Greenwich */

22 int tz_dsttime; /* type of dst correction */

23 };

42 struct itimerspec {

43 struct timespec it_interval; /* timer period */

44 struct timespec it_value; /* timer expiration */

45 };

46

47 struct itimerval {

48 struct timeval it_interval; /* timer interval */

49 struct timeval it_value; /* current value */

50 };

51
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: