//取64位时间戳
#include
#include
#include
#include
using namespace std;
int64_t get_time_us()
{
std::chrono::system_clock clock;
return std::chrono::duration_cast
clock.now().time_since_epoch()).count();
}
int _tmain(int argc, _TCHAR* argv[])
{
int i=0;
int64_t t1=0;
int64_t t2=0;
int64_t t3=0;
int64_t t4=0;
t1=get_time_us();
this_thread::sleep_for(chrono::milliseconds(10));//c++11 休眠函数
t2=get_time_us();
cout<
Sleep(10);
t4=get_time_us();
cout<
return 0;
}



