C++获取当前时间

1. 包含头文件html #include <stdio.h> #include <sys/timeb.h> 2. 代码 timeb t1; ftime(&t1); cout << t1.time * 1000 + t1.millitm; 3. 另外一种(64位win不含该头文件但上一种方法能够) #include <stdio.h> #include <sys/time.h> 4. 代
相关文章
相关标签/搜索