libmoost
moost::utils::stopwatch Class Reference

#include <stopwatch.hpp>

Inheritance diagram for moost::utils::stopwatch:
Collaboration diagram for moost::utils::stopwatch:

List of all members.

Public Types

typedef boost::int64_t elapsed_t

Public Member Functions

 stopwatch ()
void restart ()
elapsed_t elapsed_ns () const
elapsed_t elapsed_us () const
elapsed_t elapsed_ms () const
elapsed_t elapsed_secs () const
elapsed_t elapsed () const

Private Attributes

boost::posix_time::ptime start_

Detailed Description

A simple stopwatch to monitor elapsed wallclock time to microsecond granularity

Definition at line 48 of file stopwatch.hpp.


Member Typedef Documentation

typedef boost::int64_t moost::utils::stopwatch::elapsed_t

Definition at line 52 of file stopwatch.hpp.


Constructor & Destructor Documentation

Definition at line 54 of file stopwatch.hpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 88 of file stopwatch.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 76 of file stopwatch.hpp.

Here is the caller graph for this function:

Definition at line 64 of file stopwatch.hpp.

Here is the caller graph for this function:

Definition at line 82 of file stopwatch.hpp.

Here is the caller graph for this function:

Definition at line 70 of file stopwatch.hpp.

Here is the caller graph for this function:

Definition at line 59 of file stopwatch.hpp.

Here is the caller graph for this function:


Member Data Documentation

boost::posix_time::ptime moost::utils::stopwatch::start_ [private]

Definition at line 94 of file stopwatch.hpp.


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