Electroneum
epee::ado_db_helper::timing_guard Class Reference

#include <ado_db_helper.h>

Public Member Functions

 timing_guard (const std::string &sql)
 
 ~timing_guard ()
 

Detailed Description

Definition at line 188 of file ado_db_helper.h.

Constructor & Destructor Documentation

◆ timing_guard()

epee::ado_db_helper::timing_guard::timing_guard ( const std::string &  sql)
inline

Definition at line 194 of file ado_db_helper.h.

195  {
196  m_start_time = ::GetTickCount();
197  m_sql = sql;
198  }

◆ ~timing_guard()

epee::ado_db_helper::timing_guard::~timing_guard ( )
inline

Definition at line 200 of file ado_db_helper.h.

201  {
202  DWORD timing = ::GetTickCount() - m_start_time;
203  push_timing(m_sql, timing);
204  }
bool push_timing(const std::string sql, DWORD time)
Here is the call graph for this function:

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