MxEngine
Public Member Functions | List of all members
MxEngine::ScopeTimer Class Reference

#include <Profiler.h>

Public Member Functions

 ScopeTimer (std::string_view invoker, std::string_view function)
 
 ~ScopeTimer ()
 

Detailed Description

scope timer is a class which logs how much time the function execution took logging is done using Logger class via debug stream

Constructor & Destructor Documentation

§ ScopeTimer()

MxEngine::ScopeTimer::ScopeTimer ( std::string_view  invoker,
std::string_view  function 
)
inline

creates scope timer, writing to debug log stream that the function call is started to execute

Parameters
invokerobject/class/namespace which called the function
functionfunction name which is executed

§ ~ScopeTimer()

MxEngine::ScopeTimer::~ScopeTimer ( )
inline

destroys scope timer, writing to debug log stream that the function execution is ended


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