12 #ifndef THRILL_COMMON_TIMED_COUNTER_HEADER 13 #define THRILL_COMMON_TIMED_COUNTER_HEADER 27 using TimePoint = std::chrono::high_resolution_clock::time_point;
77 return std::chrono::high_resolution_clock::now();
86 #endif // !THRILL_COMMON_TIMED_COUNTER_HEADER size_t Count() const
Returns the number of Occurences on this timer.
void Reset()
Drops all Occurences of this timer.
std::vector< TimePoint > occurences_
std::vector< TimePoint > Occurences() const
Returns the Occurences of this timer.
void Trigger()
Registers a new Occurence on this TimedCounter.
TimedCounter & operator+=(const TimedCounter &rhs)
TimedCounter(TimedCounter &&rhs)
TimedCounter operator+(const TimedCounter &rhs)
Adds occurences of two instances and sorts them ascending.
std::chrono::high_resolution_clock::time_point TimePoint