【c++】获取函数运行时间的两种方法

1.GetTickCount() GetTickCount是windows下的API 函数,检索自系统启动以来通过的毫秒数,最多为49.7天ios //头文件 #include <windows.h> //函数原型 DWORD WINAPI GetTickCount(void); //返回值 系统启动后通过的毫秒数 测试代码:c++ #include <iostream> #include <c
相关文章
相关标签/搜索