Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBsystem Class Reference

System specific functions. **. More...

#include "CTBsystem.hxx"

List of all members.

Static Public Methods

double CpuTime ()
double ElapsedTime ()
int SelectRead (int i_fd, float f_timeout)
int SelectWrite (int i_fd, float f_timeout)
void Sleep (float f_time)
void ExpandFilename (char *c_dst, int i_size, const char *c_src)


Detailed Description

System specific functions. **.

Definition at line 16 of file CTBsystem.hxx.


Member Function Documentation

double CTBsystem::CpuTime [static]
 

Returns CPU time in seconds.

Definition at line 65 of file CTBsystem.cxx.

Referenced by CTBtraceClock::Reset(), CTBtraceClock::Start(), and CTBtraceClock::Update().

double CTBsystem::ElapsedTime [static]
 

Returns elapsed time in seconds.

Definition at line 88 of file CTBsystem.cxx.

Referenced by CTBtraceClock::Reset(), CTBtraceClock::Start(), and CTBtraceClock::Update().

int CTBsystem::SelectRead int i_fd,
float f_timeout
[static]
 

Test whether file descriptor is ready to read.

Returns a positive number if the file descriptor i_fd is ready to read. If f_timeout is positive, a 0 is returned if this condition is not fulfilled within f_timeout seconds. A negative number is returned in case of an error, e.g. if i_fd is not a valid file descriptor number.

Definition at line 110 of file CTBsystem.cxx.

int CTBsystem::SelectWrite int i_fd,
float f_timeout
[static]
 

Test whether file descriptor is ready to write.

Returns a positive number if the file descriptor i_fd is ready to write. If f_timeout is positive, a 0 is returned if this condition is not fulfilled within f_timeout seconds. A negative number is returned in case of an error, e.g. if i_fd is not a valid file descriptor number.

Definition at line 140 of file CTBsystem.cxx.

void CTBsystem::Sleep float f_time [static]
 

Sleep for f_timeout seconds.

The calling process is suspended for f_timeout seconds using the usleep system call. The call returns immediately if f_timeout < 0. Note, that fraction seconds can be specified, the precision of the waiting period is however system dependent, at least 10 msec, at best 1 micro second.

Definition at line 170 of file CTBsystem.cxx.

void CTBsystem::ExpandFilename char * c_dst,
int i_size,
const char * c_src
[static]
 

Expand substitutions in filenames.

The expanded form of the file name c_src is stored in the C string c_dst which has a size of i_size.

Definition at line 196 of file CTBsystem.cxx.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:14:11 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001