22 #ifndef __PLUMED_tools_Stopwatch_h
23 #define __PLUMED_tools_Stopwatch_h
109 operator double()
const;
131 std::ostream&
log(std::ostream&)
const;
134 void start(
const std::string&name);
137 void stop(
const std::string&name);
140 void pause(
const std::string&name);
Time operator-(const Time &) const
Class to store a single stopwatch.
friend std::ostream & operator<<(std::ostream &, const Stopwatch &)
Dump all timers on an ostream.
Class to hold the value of absolute time.
unsigned nsec
I store nanosecond so as to allow high resolution clocks (even if likely time will be measured in mic...
std::ostream & log(std::ostream &) const
const Time & operator+=(const Time &)
Class implementing stopwatch to time execution.
std::map< std::string, Watch > watches