Use the std::chrono types and functions for libevent.