visual studio2013创建timer

    技术2023-09-07  97

    1.引用:

    #include<iomanip>

    #include<window.h>

     

    2.在程序中:

    DWORD start_time = GetTickCount(); //需要测试运行的代码 DWORD end_time = GetTickCount(); cout<<"运行时间:" << (end_time - start_time)*1.00/1000 << "s!" <<endl;

     

    Processed: 0.008, SQL: 9