BaseTimer Class Reference

Copyright (C) 1994-1997 Givaro Team.

#include <timer.h>

Inherited by RealTimer, SysTimer, and UserTimer.

List of all members.

Public Types

enum  { MSPSEC = 1000000 }

Public Member Functions

 BaseTimer ()
void clear ()
 -- Clear timer :
double time () const
 -- total amount of second spent
std::ostream & print (std::ostream &) const
 -- basic methods:
operators

BaseTimeroperator= (const BaseTimer &T)
 Some arithmetic operator :
const BaseTimer operator- (const BaseTimer &T) const
 Computes and returns interval of time beteween *this and T.
const BaseTimer operator- ()
const BaseTimer operator+ (const BaseTimer &T) const
BaseTimeroperator+= (const BaseTimer &T)
BaseTimeroperator-= (const BaseTimer &T)

Static Public Member Functions

static long seed ()
 -- Return a value to initialize random generator

Public Attributes

double _start_t
 time as of start ()
double _t
 time

Detailed Description

Definition at line 45 of file timer.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MSPSEC 

microsecond per second

Definition at line 47 of file timer.h.


Constructor & Destructor Documentation

BaseTimer::BaseTimer (  )  [inline]

Definition at line 52 of file timer.h.

References clear().

Here is the call graph for this function:


Member Function Documentation

void BaseTimer::clear (  )  [inline]

Definition at line 55 of file timer.h.

References _t.

Referenced by BaseTimer(), and Timer::clear().

const BaseTimer BaseTimer::operator+ ( const BaseTimer T  )  const

Definition at line 83 of file timer.C.

References _t.

BaseTimer& BaseTimer::operator+= ( const BaseTimer T  )  [inline]

Definition at line 73 of file timer.h.

const BaseTimer BaseTimer::operator- (  ) 

Definition at line 76 of file timer.C.

References _t.

const BaseTimer BaseTimer::operator- ( const BaseTimer T  )  const

Definition at line 69 of file timer.C.

References _t.

BaseTimer& BaseTimer::operator-= ( const BaseTimer T  )  [inline]

Definition at line 74 of file timer.h.

BaseTimer & BaseTimer::operator= ( const BaseTimer T  ) 

Definition at line 62 of file timer.C.

References _t.

std::ostream & BaseTimer::print ( std::ostream &  o  )  const

Output the value of the timer :

Definition at line 58 of file timer.C.

References _t.

Referenced by operator<<().

long BaseTimer::seed (  )  [static]

Return a value to initialize random generator.

Definition at line 50 of file timer.C.

double BaseTimer::time (  )  const [inline]

Definition at line 58 of file timer.h.

References _t.

Referenced by Timer::realtime(), Timer::systime(), and Timer::usertime().


Member Data Documentation

double BaseTimer::_t

The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3