Static Public Member Functions | Protected Member Functions

zeus::TTime Class Reference

#include <Time.h>

Inheritance diagram for zeus::TTime:
zeus::TZObject zeus::IZUnknown

List of all members.

Static Public Member Functions

static Uint64 getTickCount ()
static void usleep (Uint64 dwell)
static Float64 getTimeStamp ()
static void sleep (Float64 dDwell)
static Uint32 random (Uint32 ulFrom, Uint32 ulTo)
static Float randomFloat (Float dFrom, Float dTo)
static Int randomInt (Int iFrom, Int iTo)
static void initRandom ()

Protected Member Functions

 TTime ()
virtual ~TTime ()

Detailed Description

Wrapper class to access time and random fnctions


Constructor & Destructor Documentation

zeus::TTime::TTime (  ) [inline, protected]
virtual zeus::TTime::~TTime (  ) [inline, protected, virtual]

Member Function Documentation

Uint64 TTime::getTickCount (  ) [static]

Returns the time in micro seconds

Float64 TTime::getTimeStamp (  ) [static]

Returns the time in seconds

void TTime::initRandom (  ) [static]

Initializes the random function

Uint32 TTime::random ( Uint32  uldFrom,
Uint32  uldTo 
) [static]

Returns a random number, which is between from and to

Parameters:
uldFrom: lower limit
uldTo: upper limit
Returns:
random number
Float TTime::randomFloat ( Float  fFrom,
Float  fTo 
) [static]

Returns a random float number, which is between from and to

Parameters:
fFrom: lower limit
fTo:upper limit
Returns:
random number
Int TTime::randomInt ( Int  iFrom,
Int  iTo 
) [static]

Returns a random integer number, which is between from and to

Parameters:
iFrom: lower limit
iTo:upper limit
Returns:
random number
void TTime::sleep ( Float64  dDwell ) [static]

Dwells for a time in seconds

Parameters:
dDwell: dwell time in seconds
void TTime::usleep ( Uint64  uldDwell ) [static]

Dwells for a time in micro seconds

Parameters:
uldDwell: dwell time in micro seconds

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:41