#include <run_time_info.h>
Public Methods | |
| RunTimeInfo () | |
| constructor: sets up def values. More... | |
| ~RunTimeInfo () | |
| destructor: frees pointers. More... | |
| void | newCycle () |
| starts a new cycle. More... | |
| void | endCycle () |
| stops the current cycle and updates the times. More... | |
| void | resume () |
| resumes timing; ie start timing again withouth adding the time to a new timing cycle. More... | |
Public Attributes | |
| unsigned int | cycles |
| the number of cycles elapsed since creation. More... | |
| unsigned long int | last_cycle_time |
| the time taken by the last cycle (in miliseconds =1/1000 s). More... | |
| unsigned long int | average_cycle_time |
| the time take on average to complete a cycle; note that this measure is useless if your agent likes to take random times to complete each cycle. More... | |
| unsigned long int | thread_last_cycle_time |
| processor time taken by the thread (in ms); note that all other times are 'real'. More... | |
| unsigned long int | thread_average_cycle_time |
| average processor time taken by the thread (in ms); note that all other times are 'real'. More... | |
Private Attributes | |
| Chronometer* | chronometer |
| chronometer used for timing the cycle. More... | |
| clock_t | utime_start |
| variables used to time the thread processor time. More... | |
| clock_t | stime_start |
| variables used to time the thread processor time. More... | |
| tms | times_struct |
| structure used to fetch time information. More... | |
| bool | is_resumed |
| flag indicating whether the chronometer has been resumed in this cycle. More... | |
Definition at line 32 of file run_time_info.h.
|
|
constructor: sets up def values.
|
|
|
destructor: frees pointers.
|
|
|
stops the current cycle and updates the times.
|
|
|
starts a new cycle.
|
|
|
resumes timing; ie start timing again withouth adding the time to a new timing cycle.
|
|
|
the time take on average to complete a cycle; note that this measure is useless if your agent likes to take random times to complete each cycle.
Definition at line 51 of file run_time_info.h. |
|
|
chronometer used for timing the cycle.
Definition at line 36 of file run_time_info.h. |
|
|
the number of cycles elapsed since creation.
Definition at line 46 of file run_time_info.h. |
|
|
flag indicating whether the chronometer has been resumed in this cycle.
Definition at line 42 of file run_time_info.h. |
|
|
the time taken by the last cycle (in miliseconds =1/1000 s).
Definition at line 48 of file run_time_info.h. |
|
|
variables used to time the thread processor time.
Definition at line 38 of file run_time_info.h. |
|
|
average processor time taken by the thread (in ms); note that all other times are 'real'.
Definition at line 55 of file run_time_info.h. |
|
|
processor time taken by the thread (in ms); note that all other times are 'real'.
Definition at line 53 of file run_time_info.h. |
|
|
structure used to fetch time information.
Definition at line 40 of file run_time_info.h. |
|
|
variables used to time the thread processor time.
Definition at line 38 of file run_time_info.h. |
1.2.8 written by Dimitri van Heesch,
© 1997-2001