|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
For timing events in seconds.
******* The use of this class is NOT recomended *******
WARNING: This code is unstable and its perfromance depends
on the machine you run it on. It is also know to have problems
with illegal instructions. These can be got around by adding ANSIFLAG=
to the program using it.
Parent Classes:
Methods:
- RealTimerG()
-
Default constructor.
- RealTimerG(double a)
-
Constructor.
- void Dump(ostream & Out) const
-
Dump internal state to stdout.
- void Reset()
-
Reset elapse timer to zero
- void Set(double t)
-
Set elapse timer to value
- void Set(long s,long n = 0)
-
Set elapse timer to values
- void Restart()
-
Restart timer
- void Start()
-
Starts the timer from where it last stopped
- void Stop()
-
Stops the timer
- bool IsTicking()
-
Checks if elapse timer is timing
- void SetOutputFormat(UIntT sw,UIntT fw)
-
Set the print format for seconds field and number of decimals
- IntT OutputFmtSecWidth() const
-
Get output width of seconds.
- IntT OutputFmtFracWidth() const
-
Get output width of fraction.
- void Elapsed()
-
Calculate and store elapsed time.
This used to be private, don't use unless
your SURE you know what your doing.
- const RealTimeRepG & ElapsedTime() const
-
Access elapsed time.
- operator double()
-
Returns the total amount of elapsed time between all the Start() and Stop()'s.
- RealT Time()
-
The time now from timer creation
- void FullPrint()
-
- void Print(int secs_width = 0,int frac_width = 4)
-
- ostream & operator<<(ostream & s,TimerG<RealTimeRepG> & t)
-
|
Programmer:George (Jiri) Matas, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|