摘要: 方案1- 优点:仅使用C标准库;缺点:只能精确到秒级 #include < time.h> #include < stdio.h> int main( void ) { time_t t = time( 0 ); char tmp[64]; strftime( tmp, sizeof(tmp), " 阅读全文
posted @ 2021-06-15 10:22 Tomorrow1126 阅读(368) 评论(0) 推荐(0) 编辑