我尝试包含这个类,以测量运行一段代码所需的时间。下面是我的includes:
#include <iostream>
#include <fstream>
#include <math.h>
#include <chrono>
using namespace std;
using namespace std::chrono;我的错误消息是:
FILENAME.cpp:4: chrono: No such file or directory我的代码出了什么问题?
发布于 2015-02-17 22:23:41
我的评论是:你使用的是C++11编译器吗?对于g++,试着给它加上"-std=c++11“。
g++ -std=c++11 myfile.cpp对于clang,情况可能是一样的。
https://stackoverflow.com/questions/28554015
复制相似问题