Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::SqlScopedTimeLogger Class Reference

#include <SqlLogger.hpp>

Public Member Functions

 SqlScopedTimeLogger (SqlScopedTimeLogger const &)=default
 Default copy constructor.
 
 SqlScopedTimeLogger (SqlScopedTimeLogger &&)=delete
 
SqlScopedTimeLoggeroperator= (SqlScopedTimeLogger const &)=default
 Default copy assignment operator.
 
SqlScopedTimeLoggeroperator= (SqlScopedTimeLogger &&)=delete
 
 SqlScopedTimeLogger (std::string tag)
 Constructs a scoped time logger with the given tag.
 

Detailed Description

A scoped timer for logging.

This class is used to measure the time spent in a code region and log it. This is typically useful for performance analysis, to identify bottlenecks.

See also
SqlLogger

Definition at line 173 of file SqlLogger.hpp.

Constructor & Destructor Documentation

◆ SqlScopedTimeLogger()

Lightweight::SqlScopedTimeLogger::SqlScopedTimeLogger ( std::string  tag)
inlineexplicit

Constructs a scoped time logger with the given tag.

Definition at line 183 of file SqlLogger.hpp.

◆ ~SqlScopedTimeLogger()

Lightweight::SqlScopedTimeLogger::~SqlScopedTimeLogger ( )
inline

Definition at line 189 of file SqlLogger.hpp.


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