Use C++11's std::chrono functions instead of glib-2.0