foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
console::timer_scope

#include <console.h>

Public Member Functions

 timer_scope (const char *name)
 
 ~timer_scope ()
 

Private Attributes

const char *const m_name
 
pfc::hires_timer m_timer
 

Detailed Description

Definition at line 26 of file console.h.

Constructor & Destructor Documentation

console::timer_scope::timer_scope ( const char *  name)
inline

Definition at line 28 of file console.h.

28 : m_name(name) {m_timer.start();}
pfc::hires_timer m_timer
Definition: console.h:35
const char *const m_name
Definition: console.h:36
void start()
Definition: timers.h:58
console::timer_scope::~timer_scope ( )
inline

Definition at line 29 of file console.h.

29  {
30  try {
31  FB2K_console_formatter() << m_name << ": " << pfc::format_time_ex(m_timer.query(), 6);
32  } catch(...) {}
33  }
double query() const
Definition: timers.h:61
pfc::hires_timer m_timer
Definition: console.h:35
const char *const m_name
Definition: console.h:36

Field Documentation

const char* const console::timer_scope::m_name
private

Definition at line 36 of file console.h.

pfc::hires_timer console::timer_scope::m_timer
private

Definition at line 35 of file console.h.


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