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

Next pull request in line. :smiley: