#include <Instrumentor.h>
Definition at line 189 of file Instrumentor.h.
 
◆ InstrumentationTimer()
  
  
      
        
          | InstrumentationTimer::InstrumentationTimer  | 
          ( | 
          const char *  | 
          name | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 192 of file Instrumentor.h.
bool _isStopped
flag if timer got stopped
 
HighResTimePoint _startTimepoint
start timepoint
 
const char * _name
function or scope name as char pointer (not std::string)
 
 
 
 
◆ ~InstrumentationTimer()
  
  
      
        
          | InstrumentationTimer::~InstrumentationTimer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ stop()
  
  
      
        
          | void InstrumentationTimer::stop  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 203 of file Instrumentor.h.
  205         auto endTimepoint = std::chrono::high_resolution_clock::now();
 
  207         long long start = std::chrono::time_point_cast<std::chrono::microseconds>(
_startTimepoint).time_since_epoch().count();
 
  208         long long end   = std::chrono::time_point_cast<std::chrono::microseconds>(endTimepoint).time_since_epoch().count();
 
  210         uint32_t threadID = (uint32_t)std::hash<std::thread::id>{}(std::this_thread::get_id());
 
void addProfile(const ProfileResult &result)
 
static Instrumentor & get()
 
 
 
 
◆ _isStopped
  
  
      
        
          | bool InstrumentationTimer::_isStopped | 
         
       
   | 
  
private   | 
  
 
 
◆ _name
  
  
      
        
          | const char* InstrumentationTimer::_name | 
         
       
   | 
  
private   | 
  
 
function or scope name as char pointer (not std::string) 
Definition at line 219 of file Instrumentor.h.
 
 
◆ _startTimepoint
The documentation for this class was generated from the following file: