fdhwlib  2.0.25
procDuration Class Reference

#include <procDuration.h>

Inheritance diagram for procDuration:
hw4::sltDuration sltDuration

List of all members.

Public Member Functions

Protected Attributes

Static Protected Attributes


Detailed Description

The class provide a timer like function to measure the real-time and the CPU time elapsed by a certain block of code.

The time is used by setting start and stop point in the code. Afterwards the elapsed time can be displayed.

Definition at line 46 of file procDuration.h.


Constructor & Destructor Documentation

procDuration::procDuration ( )

Member Function Documentation

const char* procDuration::cDate ( time_t *  t)

Display the date of a given UTC time.

const char* procDuration::cEndDate ( )

Display the end date.

const char* procDuration::cEndTime ( )

Display the end time.

const char* procDuration::cEndZone ( )

Display the end timezone.

const char* procDuration::cGpsDate ( unsigned long  t)

Display the date of a given GPS time.

const char* procDuration::cGpsTime ( unsigned long  t)

Display the time of a given GPS time.

const char* procDuration::cStartDate ( )

Display the start date.

const char* procDuration::cStartTime ( )

Display the start time.

const char* procDuration::cStartZone ( )

Display the start timezone.

const char* procDuration::cTime ( time_t *  t)

Display the time of a given UTC time.

const char* procDuration::cZone ( time_t *  t)

Display the timezone of a give UTC time.

void procDuration::displayDuration ( )
void procDuration::displayDuration ( FILE *  fout)
void procDuration::displayStartDate ( FILE *  fout)
void procDuration::displayStartTime ( FILE *  fout)
void procDuration::displayTransferRate ( double  blocksize)
void procDuration::displayTransferRate ( FILE *  fout,
double  blocksize 
)
double procDuration::getDurationCPU ( )

Used CPU time between start end end time in second, precision given by CLOCKS_PER_SEC.

double procDuration::getDurationRT ( )

Duration between start end end time in second, precision miliseconds.

void procDuration::getDurationRT ( int *  sign,
unsigned long *  sec,
unsigned long *  usec 
)

Get the difference time.

int procDuration::getEndMicroSec ( )

Returns the micro seconds of the end time.

int procDuration::getEndMiliSec ( )

Returns the mili seconds of the end time.

int procDuration::getEndNanoSec ( )

Returns the nano second of the end time.

unsigned long procDuration::getEndSec ( )

Returns the number of the second of the end time.

int procDuration::getStartMicroSec ( )

Returns the micro seconds of the start time.

int procDuration::getStartMiliSec ( )

Returns the mili seconds of the start time.

int procDuration::getStartNanoSec ( )

Returns the nano second of the start time.

unsigned long procDuration::getStartSec ( )

Returns the number of second of the start time.

void procDuration::meanTime ( procDuration dur)

Get the mean time the given interval and set it as new start time.

procDuration procDuration::operator= ( procDuration dur)

Copy.

void procDuration::set ( procDuration  dur)

Copy.

void procDuration::setEnd ( )
void procDuration::setEndFromStart ( procDuration dur)

Set end time from another start time.

void procDuration::setStart ( )
void procDuration::setStart ( unsigned long  time,
unsigned long  usec = 0 
)

Member Data Documentation

const char procDuration::dateformat[] [static, protected]

Definition at line 156 of file procDuration.h.

char procDuration::datestring[] [static, protected]

Definition at line 160 of file procDuration.h.

unsigned long procDuration::diffTimeMicroSec [protected]

Definition at line 169 of file procDuration.h.

unsigned long procDuration::diffTimeSec [protected]

Definition at line 168 of file procDuration.h.

int procDuration::diffTimeSign [protected]

Definition at line 167 of file procDuration.h.

double procDuration::durationCPU [protected]

Definition at line 152 of file procDuration.h.

double procDuration::durationRT [protected]

Definition at line 153 of file procDuration.h.

clock_t procDuration::endTick [protected]

Definition at line 145 of file procDuration.h.

struct timeval procDuration::endTime [protected]

Definition at line 149 of file procDuration.h.

struct timezone procDuration::endZone [protected]

Definition at line 150 of file procDuration.h.

clock_t procDuration::startTick [protected]

Definition at line 144 of file procDuration.h.

struct timeval procDuration::startTime [protected]

Definition at line 147 of file procDuration.h.

struct timezone procDuration::startZone [protected]

Definition at line 148 of file procDuration.h.

const char procDuration::timeformat[] [static, protected]

Definition at line 157 of file procDuration.h.

char procDuration::timestring[] [static, protected]

Definition at line 161 of file procDuration.h.

const char procDuration::zoneformat[] [static, protected]

Definition at line 158 of file procDuration.h.

char procDuration::zonestring[] [static, protected]

Definition at line 162 of file procDuration.h.


The documentation for this class was generated from the following file: