struct timeval结构体
来源:互联网 发布:php 错误代码500 编辑:程序博客网 时间:2024/06/15 10:55
转载地址:http://blog.chinaunix.net/uid-20548989-id-2533161.html
该结构体是Linux系统中定义,struct timeval结构体在time.h中的定义为:
- struct timeval
- {
- __time_t tv_sec; /* Seconds. */
- __suseconds_t tv_usec; /* Microseconds. */
- };
- #include <sys/time.h>
- #include <stdio.h>
- int
- main(void)
- {
- int i;
- struct timeval tv;
- for(i = 0; i < 4; i++){
- gettimeofday(&tv, NULL);
- printf("%d\t%d\n", tv.tv_usec, tv.tv_sec);
- sleep(1);
- }
- return 0;
- }
阅读全文
0 0
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体
- struct timeval结构体说明
- Linux struct timeval结构体
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- struct timeval结构体 以及 gettimeofday()函数
- Android开发笔记: 系统样式Android:theme-- 【图文并茂】
- 反转单链表
- org.apache.commons.dbutils 的API学习(1)
- git常用命令
- 第八篇:JAVA生成二维码(zxing)
- struct timeval结构体
- js对象字面量
- RC加密解密算法C源代码
- 567. Permutation in String 字符串置换
- Androidstudio中添加jar包的方法
- opencv学习+
- android系统定制开发动态显示隐藏虚拟按键虚拟导航Navigationbar
- UniEAP实现grid点击选中当前行
- 17素材网 素材或源码 免费下载