Doxygen
Loading...
Searching...
No Matches
Timer Class Reference

Public Member Functions

void start ()
 
double elapsedTimeS ()
 

Private Attributes

std::chrono::time_point< std::chrono::steady_clock > m_startTime
 

Detailed Description

Definition at line 176 of file debug.cpp.

Member Function Documentation

◆ elapsedTimeS()

double Timer::elapsedTimeS ( )
inline

Definition at line 183 of file debug.cpp.

184 {
185 return static_cast<double>(
186 std::chrono::duration_cast<
187 std::chrono::microseconds>(
188 std::chrono::steady_clock::now() - m_startTime).count()) / 1000000.0;
189 }
std::chrono::time_point< std::chrono::steady_clock > m_startTime
Definition debug.cpp:191

References m_startTime.

◆ start()

void Timer::start ( )
inline

Definition at line 179 of file debug.cpp.

180 {
181 m_startTime = std::chrono::steady_clock::now();
182 }

References m_startTime.

Member Data Documentation

◆ m_startTime

std::chrono::time_point<std::chrono::steady_clock> Timer::m_startTime
private

Definition at line 191 of file debug.cpp.

Referenced by elapsedTimeS(), and start().


The documentation for this class was generated from the following file: