C++11

Reference #1401.

Change much stuff to use new library.
If you make the constant a std::chrono type you don't need a constructor.