12 #include <Poco/Timestamp.h>
17 using Poco::Timestamp;
27 explicit HCETimer(
const std::string& s =
"Time: " ) : _prompt( s ), _start() {}
28 ~HCETimer() { _stop = _start.elapsed(); std::cout << _prompt <<
toSeconds( _stop ) << std::endl; }
30 inline static const double toSeconds(
const Timestamp::TimeDiff& microseconds ) {
return microseconds / 1000000.; }
34 Timestamp::TimeDiff _stop;