Utils::StopWatch Class Reference

#include <utils.h>

List of all members.


Detailed Description

Simple time measuring class, wrapped around getTick() method.

Definition at line 363 of file utils.h.


Public Member Functions

 StopWatch ()
 Constructs and starts the timer.
uint64_t elapsed () const
 Retrieves the elapsed time since the construction of the object.

Private Attributes

uint64_t start
 Timer start time.

Friends

std::ostream & operator<< (std::ostream &o, const StopWatch &s)
 Output operator to streams.

Constructor & Destructor Documentation

Utils::StopWatch::StopWatch  )  [inline]
 

Constructs and starts the timer.

Definition at line 366 of file utils.h.

References Utils::getTick().

Here is the call graph for this function:


Member Function Documentation

uint64_t Utils::StopWatch::elapsed  )  const [inline]
 

Retrieves the elapsed time since the construction of the object.

Returns:
Time elapsed in milliseconds

Definition at line 374 of file utils.h.

References Utils::getTick().

Referenced by HashWork::process().

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  o,
const StopWatch s
[friend]
 

Output operator to streams.

Definition at line 377 of file utils.h.


Member Data Documentation

uint64_t Utils::StopWatch::start [private]
 

Timer start time.

Definition at line 383 of file utils.h.


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