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:7: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:10:5: error: ‘beg’ was not declared in this scope
beg = std::chrono::high_resolution_clock::now();
^
prog.cpp:10:16: error: ‘std::chrono’ has not been declared
beg = std::chrono::high_resolution_clock::now();
^
prog.cpp: In destructor ‘Duration::~Duration()’:
prog.cpp:13:5: error: ‘duration’ was not declared in this scope
duration = std::chrono::high_resolution_clock::now();
^
prog.cpp:13:21: error: ‘std::chrono’ has not been declared
duration = std::chrono::high_resolution_clock::now();
^
prog.cpp:14:23: error: ‘std::chrono’ has not been declared
std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(duration - beg).count() << "ms" << std::endl;
^
prog.cpp:14:50: error: ‘std::chrono’ has not been declared
std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(duration - beg).count() << "ms" << std::endl;
^
prog.cpp:14:83: error: ‘beg’ was not declared in this scope
std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(duration - beg).count() << "ms" << std::endl;
^