#include <Instrumentor.h>
◆ InstrumentationTimer()
| Vesper::InstrumentationTimer::InstrumentationTimer |
( |
const char * | name | ) |
|
|
inline |
150 {
152 }
bool m_Stopped
Definition Instrumentor.h:175
std::chrono::time_point< std::chrono::high_resolution_clock > m_StartTimepoint
Definition Instrumentor.h:174
const char * m_Name
Definition Instrumentor.h:173
◆ ~InstrumentationTimer()
| Vesper::InstrumentationTimer::~InstrumentationTimer |
( |
| ) |
|
|
inline |
155 {
158 }
void Stop()
Definition Instrumentor.h:160
◆ Stop()
| void Vesper::InstrumentationTimer::Stop |
( |
| ) |
|
|
inline |
161 {
162 auto endTimepoint = std::chrono::high_resolution_clock::now();
163
164 long long start = std::chrono::time_point_cast<std::chrono::microseconds>(
m_StartTimepoint).time_since_epoch().count();
165 long long end = std::chrono::time_point_cast<std::chrono::microseconds>(endTimepoint).time_since_epoch().count();
166
167 uint32_t threadID = std::hash<std::thread::id>{}(std::this_thread::get_id());
169
171 }
static Instrumentor & Get()
Definition Instrumentor.h:138
void WriteProfile(const ProfileResult &result)
Definition Instrumentor.h:90
◆ m_Name
| const char* Vesper::InstrumentationTimer::m_Name |
|
private |
◆ m_StartTimepoint
| std::chrono::time_point<std::chrono::high_resolution_clock> Vesper::InstrumentationTimer::m_StartTimepoint |
|
private |
◆ m_Stopped
| bool Vesper::InstrumentationTimer::m_Stopped |
|
private |
The documentation for this class was generated from the following file: