会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
woder
博客园
首页
新随笔
联系
订阅
管理
2020年3月27日
c/c++ linux下获取时间
摘要: ``` #include /* struct timeval { __time_t tv_sec; Seconds. 秒位部分 __suseconds_t tv_usec; Microseconds. 微秒位部分 }; */ void fn(){ struct timeval now; gettimeofday(&now, NULL); //获取从1970年1月1日到现在的时间 cout<<"当前
阅读全文
posted @ 2020-03-27 08:55 woder
阅读(1696)
评论(0)
推荐(1)
编辑
公告