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

const& (and elsewhere)