/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #pragma once #ifndef TIMER_HPP #define TIMER_HPP #include #include class UTimer { public: UTimer(); void start(); void stop(); long long int print(const std::string &s); private: std::chrono::time_point TimeStart; std::chrono::duration TimeElapsed; long long int Timeusec; }; #endif /* TIMER_HPP */