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 179 of file debug.cpp.

Member Function Documentation

◆ elapsedTimeS()

double Timer::elapsedTimeS ( )
inline

Definition at line 186 of file debug.cpp.

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

References m_startTime.

◆ start()

void Timer::start ( )
inline

Definition at line 182 of file debug.cpp.

183 {
184 m_startTime = std::chrono::steady_clock::now();
185 }

References m_startTime.

Member Data Documentation

◆ m_startTime

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

Definition at line 194 of file debug.cpp.

Referenced by elapsedTimeS(), and start().


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