Public Types | Public Member Functions | Private Attributes

mln::util::timer Class Reference

Timer structure. More...

#include <timer.hh>

Inheritance diagram for mln::util::timer:
Inheritance graph

List of all members.

Public Types

typedef Proxy< void > category
typedef timer exact_t

Public Member Functions

double ms () const
void operator= (const timer &)
float read () const
void reset ()
void restart ()
void resume ()
void start ()
float stop ()
float subj_ ()
 timer (const timer &)
 timer ()
 ~timer ()

Private Attributes

bool running_
float start_
float time_

Detailed Description

Timer structure.

Definition at line 45 of file mln/util/timer.hh.


Member Typedef Documentation

typedef Proxy<void> mln::Proxy< timer >::category [inherited]

Reimplemented from mln::Object< timer >.

Definition at line 234 of file core/concept/proxy.hh.

typedef timer mln::Object< timer >::exact_t [inherited]

Definition at line 173 of file object.hh.


Constructor & Destructor Documentation

timer::timer (  )  [inline]

Definition at line 99 of file mln/util/timer.hh.

References reset().

mln::util::timer::timer ( const timer  ) 
timer::~timer (  )  [inline]

Definition at line 105 of file mln/util/timer.hh.

References reset().


Member Function Documentation

double mln::util::timer::ms (  )  const [inline]

Definition at line 83 of file mln/util/timer.hh.

void mln::util::timer::operator= ( const timer  ) 
float timer::read (  )  const [inline]

Definition at line 159 of file mln/util/timer.hh.

References running_, start_, and time_.

Referenced by subj_().

void timer::reset (  )  [inline]

Definition at line 141 of file mln/util/timer.hh.

References running_, start_, and time_.

Referenced by mln::morpho::tree::impl::generic::dual_union_find(), restart(), timer(), and ~timer().

void timer::restart (  )  [inline]

Definition at line 150 of file mln/util/timer.hh.

References reset(), and start().

Referenced by mln::morpho::tree::impl::generic::dual_union_find().

void timer::resume (  )  [inline]

Definition at line 132 of file mln/util/timer.hh.

References running_, and start_.

Referenced by mln::morpho::tree::internal::find_root().

void timer::start (  )  [inline]
float timer::stop (  )  [inline]

Definition at line 122 of file mln/util/timer.hh.

References running_, start_, and time_.

Referenced by mln::morpho::tree::internal::find_root().

float timer::subj_ (  )  [inline]

Definition at line 169 of file mln/util/timer.hh.

References read(), and start_.


Member Data Documentation

Definition at line 90 of file mln/util/timer.hh.

Referenced by read(), reset(), resume(), start(), and stop().

float mln::util::timer::start_ [private]

Definition at line 91 of file mln/util/timer.hh.

Referenced by read(), reset(), resume(), start(), stop(), and subj_().

float mln::util::timer::time_ [private]

Definition at line 92 of file mln/util/timer.hh.

Referenced by read(), reset(), start(), and stop().