libmoost
moost::utils::benchmark::timer Class Reference

#include <benchmark.hpp>

Collaboration diagram for moost::utils::benchmark::timer:

List of all members.

Public Member Functions

 timer (benchmark &bm, const std::string &default_result="error")
 ~timer ()
void restart ()
void stop (const std::string &result="success")

Private Attributes

benchmarkm_bm
bool m_running
boost::posix_time::ptime m_start
const std::string m_default_result

Detailed Description

Definition at line 91 of file benchmark.hpp.


Constructor & Destructor Documentation

moost::utils::benchmark::timer::timer ( benchmark bm,
const std::string &  default_result = "error" 
) [inline]

Definition at line 94 of file benchmark.hpp.

Here is the call graph for this function:

Definition at line 101 of file benchmark.hpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 112 of file benchmark.hpp.

Here is the caller graph for this function:

void moost::utils::benchmark::timer::stop ( const std::string &  result = "success") [inline]

Definition at line 118 of file benchmark.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 130 of file benchmark.hpp.

Definition at line 133 of file benchmark.hpp.

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.


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