Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Profiler.h>
Don't bother trying to use this as a quick timer - just use TimeET directly. But there are functions to get the elapsed time and such if you insist.
Definition at line 111 of file Profiler.h.
Public Member Functions | |
Timer () | |
constructor - starts timer, but you can restart it... | |
Timer (unsigned int id, Profiler *prof) | |
constructor - starts the timer, sets current timer in prof | |
Timer (const Timer &t) | |
copy constructor, not that you should need it, does same as default | |
Timer | operator= (const Timer &t) |
not that you should need it, does same as default | |
~Timer () | |
destructor - stops the timer, reports results | |
void | setID (unsigned int id, Profiler *prof) |
sets the ID and profiler, also starts timer | |
void | start () |
starts timer (or resets it) | |
const TimeET & | startTime () |
returns time of start | |
TimeET | elapsed () |
returns time since start | |
Protected Attributes | |
Profiler * | _prof |
the profiler this should report to | |
unsigned int | _id |
the id number for this code section (See example in beginning of class documentation for how these are assigned) | |
unsigned int | _parent |
the id number of the timer this timer is under | |
TimeET | _t |
the time this timer was created | |
Friends | |
class | Profiler |
Profiler will need to read out some data that no one else should be depending on. |
|
constructor - starts timer, but you can restart it...
Definition at line 115 of file Profiler.h. |
|
constructor - starts the timer, sets current timer in prof
Tells the profiler that this is now the active timer, so new timers will fit "under" this.
Definition at line 14 of file Profiler.cc. |
|
copy constructor, not that you should need it, does same as default
Definition at line 117 of file Profiler.h. |
|
destructor - stops the timer, reports results
Definition at line 19 of file Profiler.cc. |
|
returns time since start
Definition at line 123 of file Profiler.h. Referenced by Profiler::finished(). |
|
not that you should need it, does same as default
Definition at line 118 of file Profiler.h. |
|
sets the ID and profiler, also starts timer
Definition at line 24 of file Profiler.cc. Referenced by MMCombo::ReadySendJoints(). |
|
starts timer (or resets it)
Definition at line 121 of file Profiler.h. |
|
returns time of start
Definition at line 122 of file Profiler.h. |
|
Profiler will need to read out some data that no one else should be depending on.
Definition at line 113 of file Profiler.h. |
|
the id number for this code section (See example in beginning of class documentation for how these are assigned)
Definition at line 126 of file Profiler.h. Referenced by Profiler::finished(), operator=(), Profiler::setCurrent(), setID(), and Timer(). |
|
the id number of the timer this timer is under
Definition at line 127 of file Profiler.h. Referenced by Profiler::finished(), operator=(), Profiler::setCurrent(), and Timer(). |
|
the profiler this should report to
Definition at line 125 of file Profiler.h. Referenced by operator=(), setID(), Timer(), and ~Timer(). |
|
the time this timer was created
Definition at line 128 of file Profiler.h. Referenced by elapsed(), operator=(), Profiler::setCurrent(), start(), startTime(), and Timer(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:21 2004 by Doxygen 1.3.4 |