BaseTimer Class Reference

Copyright (C) 1994-1997 Givaro Team.

#include <timer.h>

Inheritance diagram for BaseTimer:

Inheritance graph
[legend]

List of all members.

Public Types

enum  { MSPSEC = 1000000 }

Public Member Functions

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 43 of file timer.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
MSPSEC  microsecond per second

Definition at line 45 of file timer.h.


Member Function Documentation

void BaseTimer::clear (  )  [inline]

Definition at line 50 of file timer.h.

References _t.

Referenced by Timer::clear().

double BaseTimer::time (  )  const [inline]

Definition at line 53 of file timer.h.

References _t.

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

long BaseTimer::seed (  )  [static]

Return a value to initialize random generator.

Definition at line 48 of file timer.C.

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

Output the value of the timer :.

Definition at line 56 of file timer.C.

References _t.

Referenced by operator<<().

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

Definition at line 60 of file timer.C.

References _t.

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

Definition at line 67 of file timer.C.

References _t.

const BaseTimer BaseTimer::operator- (  ) 

Definition at line 74 of file timer.C.

References _t.

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

Definition at line 81 of file timer.C.

References _t.

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

Definition at line 68 of file timer.h.

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

Definition at line 69 of file timer.h.


Member Data Documentation

double BaseTimer::_t


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

Generated on Sat Nov 22 17:20:52 2008 for centerfocus and nxnxn by  doxygen 1.5.6