libmoost
|
#include <benchmark.hpp>
Public Member Functions | |
timer (benchmark &bm, const std::string &default_result="error") | |
~timer () | |
void | restart () |
void | stop (const std::string &result="success") |
Private Attributes | |
benchmark & | m_bm |
bool | m_running |
boost::posix_time::ptime | m_start |
const std::string | m_default_result |
Definition at line 91 of file benchmark.hpp.
moost::utils::benchmark::timer::timer | ( | benchmark & | bm, |
const std::string & | default_result = "error" |
||
) | [inline] |
moost::utils::benchmark::timer::~timer | ( | ) | [inline] |
void moost::utils::benchmark::timer::restart | ( | ) | [inline] |
void moost::utils::benchmark::timer::stop | ( | const std::string & | result = "success" | ) | [inline] |
Definition at line 118 of file benchmark.hpp.
benchmark& moost::utils::benchmark::timer::m_bm [private] |
Definition at line 130 of file benchmark.hpp.
const std::string moost::utils::benchmark::timer::m_default_result [private] |
Definition at line 133 of file benchmark.hpp.
bool moost::utils::benchmark::timer::m_running [private] |
Definition at line 131 of file benchmark.hpp.
boost::posix_time::ptime moost::utils::benchmark::timer::m_start [private] |
Definition at line 132 of file benchmark.hpp.