1#ifndef LINTEL_STOPWATCHSERVICE_H
2#define LINTEL_STOPWATCHSERVICE_H
46 std::chrono::time_point<std::chrono::steady_clock> m_startTime;
47 std::chrono::time_point<std::chrono::steady_clock> m_endTime;
48 bool m_stopVar =
false;
Definition StopWatchService.h:9
std::chrono::nanoseconds elapsed() const
Returns the elapsed time of the timer.
void stop()
possibility to stop timer
void reset()
reset timer if started or start timer if it was not started
friend std::ostream & operator<<(std::ostream &os, const StopWatchService &service)
StopWatchService(bool run=true)
constructor for timer. shutdown implies the start or not start of the timer
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9