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
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
相关文章推荐
- 在VC++程序中接收COM事件
- 【c++】实例演示类继承中派生类到基类的转换及虚函数
- Internal Error (classFileParser.cpp:3075)处理
- C风格字符串,字符串字面值,C++风格字符串
- 一种C++消息队列构造方法
- 避免 C/C++ 程序一闪而过的方法
- 图像的配准及在VC++中实现
- c++中的流程控制[c++ 基础(二)]
- C++内存地址分配与划分
- C语言宏定义##连接符和#符的使用
- 求简单算法
- C语言结构体占用空间内存大小解析
- C++ 矩阵运算工具箱Eigen
- 《高质量C++/C编程指南》陷阱 【转】
- VC++VS2010工程转换为VS2005
- fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- C语言指针参数讲解(转)
- C++ 中将二维数组传入函数
- 【转】C++ static关键字
- cppPrimer2