摘要: ``` #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 阅读(1693) 评论(0) 推荐(1) 编辑