library of assembled shared sources

http://lass.cocamware.com

lass::util::Clock Class Reference

#include <clock.h>


Public Types

typedef double TTime
typedef impl::ClockImpl::TTick TTick

Public Member Functions

 Clock (TTime iStartTime=0)
void reset (TTime iStartTime=0)
const TTime time () const
const TTick tick () const
const TTick frequency () const
const TTime resolution () const

Static Public Member Functions

static const std::string humanize (const TTime &iTime)

Private Attributes

TTime startTime_
TTime resolution_
TTick startTick_
TTick frequency_


Detailed Description

Definition at line 57 of file clock.h.


Member Typedef Documentation

typedef double lass::util::Clock::TTime

Definition at line 61 of file clock.h.

Definition at line 62 of file clock.h.


Constructor & Destructor Documentation

lass::util::Clock::Clock ( TTime  iStartTime = 0  )  [explicit]

Definition at line 51 of file clock.cpp.

References frequency_, reset(), and resolution_.


Member Function Documentation

void lass::util::Clock::reset ( TTime  iStartTime = 0  ) 

Definition at line 60 of file clock.cpp.

References startTick_, startTime_, and tick().

Referenced by Clock().

const TTime lass::util::Clock::time (  )  const [inline]

const TTick lass::util::Clock::tick (  )  const [inline]

Definition at line 68 of file clock.h.

References lass::util::impl::ClockImpl::tick().

Referenced by reset().

const TTick lass::util::Clock::frequency (  )  const [inline]

Definition at line 70 of file clock.h.

const TTime lass::util::Clock::resolution (  )  const [inline]

Definition at line 71 of file clock.h.

const std::string lass::util::Clock::humanize ( const TTime iTime  )  [static]

Definition at line 67 of file clock.cpp.

References lass::io::cout().

Referenced by lass::util::ProgressIndicator::operator()().


Field Documentation

Definition at line 77 of file clock.h.

Referenced by reset().

Definition at line 78 of file clock.h.

Referenced by Clock().

Definition at line 79 of file clock.h.

Referenced by reset().

Definition at line 80 of file clock.h.

Referenced by Clock().


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

Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo