class Timer

Timer.

Inheritance:


Public Methods

[more] Timer()
Create the timer and start it now!
[more]void reset()
Reset the timer.
[more]void stop()
Stop the timer.
[more]void resume()
Resume the timer.
[more]real getTime()
Get the total accumulated time.
[more]static real getRunTime()
System dependent function which returns time elapsed since an arbitrary point reference in the past


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

Timer. to measure time. It accumulates the time measured in several resume() (or constructor definition) and stop() calls.

Use getTime() to know this accumulated time.

o Timer()
Create the timer and start it now!

ovoid reset()
Reset the timer. The timer will count time starting from now, and the accumulated time is erased.

ovoid stop()
Stop the timer. Updates accumulated time.

ovoid resume()
Resume the timer. It will count time starting from now.

oreal getTime()
Get the total accumulated time. (Until now, if the timer is still running.

ostatic real getRunTime()
System dependent function which returns time elapsed since an arbitrary point reference in the past


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.