#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <ctime>
#include <windows.h>
using namespace std;
int main(void)
{
clock_t begin = clock();
cout << begin << endl;
//用来测试精确度的,大约±1ms
Sleep(200);
clock_t end = clock();
cout << end << endl;
cout << "Running time: " << ((double)(end) -(double)(begin)) / CLOCKS_PER_SEC * 1000 << "ms" << endl;
system("pause");
return 0;
}