Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DALT_Client::RunTimeInfo Class Reference

This class provides cycle-based statistical information on the time required for completion. More...

#include <run_time_info.h>

List of all members.

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...


Detailed Description

This class provides cycle-based statistical information on the time required for completion.

Author:
Vlad Mereuta

Definition at line 32 of file run_time_info.h.


Constructor & Destructor Documentation

DALT_Client::RunTimeInfo::RunTimeInfo ( )
 

constructor: sets up def values.

DALT_Client::RunTimeInfo::~RunTimeInfo ( )
 

destructor: frees pointers.


Member Function Documentation

void DALT_Client::RunTimeInfo::endCycle ( )
 

stops the current cycle and updates the times.

void DALT_Client::RunTimeInfo::newCycle ( )
 

starts a new cycle.

Note:
if you are calling this function to find out the processor time for a thread, make sure that the function is called by the thread itself, as it measures the start for the currently running thread

void DALT_Client::RunTimeInfo::resume ( )
 

resumes timing; ie start timing again withouth adding the time to a new timing cycle.


Member Data Documentation

unsigned long int DALT_Client::RunTimeInfo::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.

Definition at line 51 of file run_time_info.h.

Chronometer * DALT_Client::RunTimeInfo::chronometer [private]
 

chronometer used for timing the cycle.

Definition at line 36 of file run_time_info.h.

unsigned int DALT_Client::RunTimeInfo::cycles
 

the number of cycles elapsed since creation.

Definition at line 46 of file run_time_info.h.

bool DALT_Client::RunTimeInfo::is_resumed [private]
 

flag indicating whether the chronometer has been resumed in this cycle.

Definition at line 42 of file run_time_info.h.

unsigned long int DALT_Client::RunTimeInfo::last_cycle_time
 

the time taken by the last cycle (in miliseconds =1/1000 s).

Definition at line 48 of file run_time_info.h.

clock_t DALT_Client::RunTimeInfo::stime_start [private]
 

variables used to time the thread processor time.

Definition at line 38 of file run_time_info.h.

unsigned long int DALT_Client::RunTimeInfo::thread_average_cycle_time
 

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.

unsigned long int DALT_Client::RunTimeInfo::thread_last_cycle_time
 

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.

tms DALT_Client::RunTimeInfo::times_struct [private]
 

structure used to fetch time information.

Definition at line 40 of file run_time_info.h.

clock_t DALT_Client::RunTimeInfo::utime_start [private]
 

variables used to time the thread processor time.

Definition at line 38 of file run_time_info.h.


The documentation for this class was generated from the following file:
Generated at Thu Jan 31 15:20:23 2002 for DALT Client by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001