我正在尝试使用时钟来测量Visual Studio2015(x64)中运行程序的时间,使用C++在Windows上调试x64模式。
我在这些行中发现了错误:
#include <time.h>
#include <sys/timeb.h>
错误消息显示:
无法打开源文件“time.h”
无法打开源文件“sys/time.h”
要修复此错误,我必须添加什么路径才能包含目录?
您可以尝试#include
请参阅:http://www.cplusplus.com/reference/ctime/
使用的Time.h是C而不是C++。