libmoost
moost::utils::scoped_stopwatch Class Reference

#include <stopwatch.hpp>

Inheritance diagram for moost::utils::scoped_stopwatch:
Collaboration diagram for moost::utils::scoped_stopwatch:

List of all members.

Public Types

enum  granularity { nanosecs, microsecs, millisecs, secs }
typedef stopwatch::elapsed_t elapsed_t

Public Member Functions

 scoped_stopwatch (elapsed_t &future, granularity const g=microsecs, bool const a=false)
 ~scoped_stopwatch ()

Private Attributes

stopwatch sw_
elapsed_tfuture_
granularity const granularity_
bool const accumulate_

Detailed Description

A scoped stop watch that will return the elapsed time in a future variable.

Definition at line 101 of file stopwatch.hpp.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
nanosecs 
microsecs 
millisecs 
secs 

Definition at line 104 of file stopwatch.hpp.


Constructor & Destructor Documentation

moost::utils::scoped_stopwatch::scoped_stopwatch ( elapsed_t future,
granularity const  g = microsecs,
bool const  a = false 
) [inline]

Definition at line 111 of file stopwatch.hpp.

Definition at line 120 of file stopwatch.hpp.

Here is the call graph for this function:


Member Data Documentation

Definition at line 150 of file stopwatch.hpp.

Definition at line 148 of file stopwatch.hpp.

Definition at line 149 of file stopwatch.hpp.

Definition at line 147 of file stopwatch.hpp.


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