Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

ObjCryst::RefinableObjClock Class Reference

We need to record exactly when refinable objects have been modified for the last time (to avoid re-computation), and to do that we need a precise time. Since the clock() function is not precise enough (and is architecture-dependant), we use a custom time, which records the number of events in the program which uses the library. This is purely internal, so don't worry about it... The clock values have nothing to do with 'time' as any normal person undertands it. More...

#include <RefinableObj.h>

List of all members.

Public Methods

 RefinableObjClock ()
 ~RefinableObjClock ()
bool operator< (const RefinableObjClock &rhs) const
bool operator<= (const RefinableObjClock &rhs) const
bool operator> (const RefinableObjClock &rhs) const
bool operator>= (const RefinableObjClock &rhs) const
void Click ()
 Record an event for this clock (generally, the 'time' an object has been modified, or some computation has been made).

void Reset ()
 Reset a Clock to 0, to force an update.

void Print () const
 Print clock value. Only for debugging purposes.

void PrintStatic () const
 Print current general clock value. Only for debugging purposes.


Private Attributes

unsigned long mTick0
unsigned long mTick1

Static Private Attributes

unsigned long msTick0
unsigned long msTick1


Detailed Description

We need to record exactly when refinable objects have been modified for the last time (to avoid re-computation), and to do that we need a precise time. Since the clock() function is not precise enough (and is architecture-dependant), we use a custom time, which records the number of events in the program which uses the library. This is purely internal, so don't worry about it... The clock values have nothing to do with 'time' as any normal person undertands it.


The documentation for this class was generated from the following file:
Generated on Tue Feb 5 17:37:24 2002 for ObjCryst++ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001