aitools::invertedindex::Timer Class Reference

#include <Timer.hpp>

List of all members.

Public Member Functions

 Timer ()
void restart ()
double elapsed () const
double elapsed_max () const
double elapsed_min () const

Private Attributes

::timeval time_

Static Private Attributes

static const double divisor = 1000000

Detailed Description

A helper class that measures wall clock time. Returns the time in seconds as floating point number. On POSIX compatible systems this number has microsecond resolution.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
Timer.hpp,v 1.3 2010/05/11 23:41:08 trenkman Exp

Definition at line 36 of file Timer.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::Timer::Timer (  )  [inline]

Definition at line 44 of file Timer.hpp.

References time_.


Member Function Documentation

double aitools::invertedindex::Timer::elapsed (  )  const [inline]

Definition at line 56 of file Timer.hpp.

References divisor, and time_.

double aitools::invertedindex::Timer::elapsed_max (  )  const [inline]

Definition at line 64 of file Timer.hpp.

References time_.

double aitools::invertedindex::Timer::elapsed_min (  )  const [inline]

Definition at line 69 of file Timer.hpp.

void aitools::invertedindex::Timer::restart (  )  [inline]

Definition at line 51 of file Timer.hpp.

References time_.


Member Data Documentation

const double aitools::invertedindex::Timer::divisor = 1000000 [static, private]

Definition at line 40 of file Timer.hpp.

Referenced by elapsed().

Definition at line 76 of file Timer.hpp.

Referenced by elapsed(), elapsed_max(), restart(), and Timer().


The documentation for this class was generated from the following file:
Generated on Wed May 30 15:07:38 2012 by  doxygen 1.6.3