会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
bluehattt
博客园
首页
新随笔
联系
订阅
管理
2020年5月27日
C/C++获取程序运行时间(纳秒级)
摘要: 用到获取系统时间(纳秒)的函数getTimeNs() 包含头文件:ctime(c++)/time.h(c) #include<ctime> long getTimeNs() { struct timespec ts; clock_gettime(CLOCK_REALTIME,&ts); return
阅读全文
posted @ 2020-05-27 23:17 cnwanglu
阅读(7202)
评论(0)
推荐(1)
编辑
公告