C语言常用代码(To be continue...)
来源:互联网 发布:手机徒步软件 编辑:程序博客网 时间:2024/05/16 16:57
计算时间
使用gettimeofday接口:
下载: gettimeofday.c
- #include
<stdio.h> - #include
<sys/time.h> -
- int
main() { -
timeval start, end; -
& start,NULL ); -
-
& end,NULL ); -
timeuse = 1000000* (end.tv_sec - start.tv_sec) + end.tv_usec- start.tv_usec; -
timeuse); -
0; - }
gettimeofday能得到微秒数,比毫秒还要更精确。
0 0
- C语言常用代码(To be continue...)
- Review C[To Be continue]
- C语言拾零(to be continued)
- Scrum Introduction[To be continue...]
- Linux上部署Redis集群(to be continue)
- 简明C语言教程(十五)continue
- c语言 continue break
- c语言 continue
- The Lost Homeland【to be continue】
- Destroy, to be continue (2010-6-30)
- Asynchronous Programming Design Patterns (to be continue)
- 【to be continue】五金配件,省得以后不认识
- Find Closet Pairs -- To be continue
- c语言常用代码积累
- C语言-常用代码总结
- C语言break和continue
- C语言中的continue用法
- 常用正则(to be continued)
- android 处理按键动作
- JSP JDBC 连接 SqlServer2008
- Visual C#2010学习笔记六之运算符的重载
- 《开源框架那些事儿27》:一段SQL引发的性能危机及其背后隐藏的设计缺
- QQ做第三方登录
- C语言常用代码(To be continue...)
- 剖析 sql server 执行计划(Dissecting SQL Server Execution Plans) 1.1
- Integrating VMware ESXi with OpenStack & OpenContrail
- python模块的打包
- oracle 登录
- 安装xtrabackup
- React Native通信机制详解
- POJ 1979 Red and Black
- [codeigniter 五]、查询缓存