C++11

Reference #1401.

Change much stuff to use new library.
This doesn't work well - the original function returned fractional seconds, the new function truncates to whole seconds.