In file included from /usr/include/c++/4.8/chrono:35:0,
from prog.cpp:2:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
prog.cpp:6:3: error: ‘chrono’ in namespace ‘std’ does not name a type
std::chrono::high_resolution_clock::time_point beg, duration;
^
prog.cpp: In constructor ‘Duration::Duration()’:
prog.cpp:9:5: error: ‘beg’ was not declared in this scope
beg = std::chrono::high_resolution_clock::now();
^
prog.cpp:9:16: error: ‘std::chrono’ has not been declared
beg = std::chrono::high_resolution_clock::now();
^
prog.cpp: In destructor ‘Duration::~Duration()’:
prog.cpp:12:5: error: ‘duration’ was not declared in this scope
duration = std::chrono::high_resolution_clock::now();
^
prog.cpp:12:21: error: ‘std::chrono’ has not been declared
duration = std::chrono::high_resolution_clock::now();
^
prog.cpp:13:23: error: ‘std::chrono’ has not been declared
std::cout << std::chrono::duration_cast<std::chrono::microseconds>(duration - beg).count() / 1000 << "ms" << std::endl;
^
prog.cpp:13:50: error: ‘std::chrono’ has not been declared
std::cout << std::chrono::duration_cast<std::chrono::microseconds>(duration - beg).count() / 1000 << "ms" << std::endl;
^
prog.cpp:13:83: error: ‘beg’ was not declared in this scope
std::cout << std::chrono::duration_cast<std::chrono::microseconds>(duration - beg).count() / 1000 << "ms" << std::endl;
^