Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::scope_perf_timer Class Reference

#include <profiler.h>

Public Types

using clock_t = std::chrono::high_resolution_clock
 
using timepoint_t = clock_t::time_point
 
using duration_t = std::chrono::duration<float, std::milli>
 

Public Member Functions

template<typename T >
 scope_perf_timer (T &&name, performance_profiler *profiler)
 Constructor that only accepts string literals for safety.
 
 ~scope_perf_timer ()
 

Detailed Description

Definition at line 100 of file profiler.h.

Member Typedef Documentation

◆ clock_t

using unravel::scope_perf_timer::clock_t = std::chrono::high_resolution_clock

Definition at line 103 of file profiler.h.

◆ duration_t

using unravel::scope_perf_timer::duration_t = std::chrono::duration<float, std::milli>

Definition at line 105 of file profiler.h.

◆ timepoint_t

using unravel::scope_perf_timer::timepoint_t = clock_t::time_point

Definition at line 104 of file profiler.h.

Constructor & Destructor Documentation

◆ scope_perf_timer()

template<typename T >
unravel::scope_perf_timer::scope_perf_timer ( T && name,
performance_profiler * profiler )
inline

Constructor that only accepts string literals for safety.

Only accepts string literals to ensure lifetime safety since we store non-owning pointers

Parameters
nameString literal name for the performance timer
profilerPointer to the performance profiler instance

Definition at line 112 of file profiler.h.

◆ ~scope_perf_timer()

unravel::scope_perf_timer::~scope_perf_timer ( )
inline

Definition at line 120 of file profiler.h.


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