秒级
#include <time.h>
time_t now;
time(&now);
毫秒级
#include <Windows.h>
DWORD startTime = GetTickCount();
//your paogram
DWORD totalTime = GetTickCount() - startTime;
秒级
#include <time.h>
time_t now;
time(&now);
毫秒级
#include <Windows.h>
DWORD startTime = GetTickCount();
//your paogram
DWORD totalTime = GetTickCount() - startTime;