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

This class would be useful elsewhere, could extract it?
:)