VC6.0 C++ 得到系统时间

来源:互联网 发布:淘宝培训班多少学费 编辑:程序博客网 时间:2024/06/05 12:07

VC6.0获取当前系统时间:
方式1(精确到毫秒级别):

double d_currenttime = GetTickCount();

方式2:
首先包含头文件

#include <time.h>SYSTEMTIME current_time;GetLocalTime(&current_time);//得到系统时间,精确到毫秒,我们可以取出任何值,和格式化字符串为想要的结果
原创粉丝点击