SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::ScopedTimer Class Reference

RAII stopwatch: logs elapsed time on destruction under the given name. More...

#include <ScopedTimer.hpp>

Public Member Functions

 ScopedTimer (const std::string &name)
 ~ScopedTimer ()

Detailed Description

RAII stopwatch: logs elapsed time on destruction under the given name.

Definition at line 8 of file ScopedTimer.hpp.

Constructor & Destructor Documentation

◆ ScopedTimer()

Sleak::ScopedTimer::ScopedTimer ( const std::string & name)
inline

Definition at line 10 of file ScopedTimer.hpp.

◆ ~ScopedTimer()

Sleak::ScopedTimer::~ScopedTimer ( )
inline

Definition at line 13 of file ScopedTimer.hpp.