8 #ifndef PARALLEL_CELLULAR_AUTOMATA_UTIMER_HPP
9 #define PARALLEL_CELLULAR_AUTOMATA_UTIMER_HPP
21 std::chrono::system_clock::time_point start;
22 std::chrono::system_clock::time_point stop;
24 using usecs = std::chrono::microseconds;
25 using msecs = std::chrono::milliseconds;
37 UTimer(
const std::string m);
46 UTimer(
const std::string m,
long *us);
RAII Timer that prints on cout the time elapsed since its creation and a message. The time is measure...
Definition: utimer.hpp:20
UTimer(const std::string m)
Construct a new UTimer object.
Definition: utimer.cpp:16
~UTimer()
Destroy the UTimer object and print the message containing the elapsed time.
Definition: utimer.cpp:26