SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Stop()

void SpicesTest::InstrumentationTimer::Stop ( )
inline

Definition at line 159 of file Instrumentor.h.

160 {
161 auto endTimepoint = std::chrono::steady_clock::now();
162 auto highResStart = FloatingPointMicroseconds{ m_StartTimepoint.time_since_epoch() };
163 auto elapsedTime = std::chrono::time_point_cast<std::chrono::microseconds>(endTimepoint).time_since_epoch() - std::chrono::time_point_cast<std::chrono::microseconds>(m_StartTimepoint).time_since_epoch();
164
165 Instrumentor::Get().WriteProfile({ m_Name, highResStart, elapsedTime, std::this_thread::get_id() });
166
167 m_Stopped = true;
168 }
std::chrono::time_point< std::chrono::steady_clock > m_StartTimepoint
static Instrumentor & Get()
void WriteProfile(const ProfileResult &result)
std::chrono::duration< double, std::micro > FloatingPointMicroseconds

References m_Stopped.

Referenced by ~InstrumentationTimer().