#include <run_time_info.h>
Public Methods | |
RunTimeInfo () | |
~RunTimeInfo () | |
void | newCycle () |
void | endCycle () |
void | resume () |
Public Attributes | |
unsigned int | cycles |
unsigned long int | last_cycle_time |
unsigned long int | average_cycle_time |
unsigned long int | thread_last_cycle_time |
unsigned long int | thread_average_cycle_time |
Private Attributes | |
Chronometer* | chronometer |
clock_t | utime_start |
clock_t | stime_start |
tms | times_struct |
bool | is_resumed |
|
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.
|
|
chronometer used for timing the cycle.
|
|
the number of cycles elapsed since creation.
|
|
flag indicating whether the chronometer has been resumed in this cycle.
|
|
the time taken by the last cycle (in miliseconds =1/1000 s).
|
|
variables used to time the thread processor time.
|
|
average processor time taken by the thread (in ms); note that all other times are 'real'.
|
|
processor time taken by the thread (in ms); note that all other times are 'real'.
|
|
structure used to fetch time information.
|
|
variables used to time the thread processor time.
|