Main Page   Class Hierarchy   Compound List   File List   Compound Members  

BaTime Class Reference

Basic measurement of time. More...

#include <freecloth/base/baTime.h>

List of all members.

Public Types

typedef Int32 Duration
 A period of time.

typedef UInt32 Instant
 A single point in time.

enum  { MS = 1, S = 1000, MIN = S * 60 }

Static Public Member Functions

Instant getTime ()
 Retrieve the current time.

Duration getDuration (Instant start, Instant end)
 Calculate the elapsed time between two instants.

Float instantAsSeconds (Instant)
Float durationAsSeconds (Duration)
Instant floatAsInstant (Float)
Duration floatAsDuration (Float)


Detailed Description

Basic measurement of time.

Defines instants and durations, and methods for retrieving the current time and measuring durations.

Definition at line 40 of file baTime.h.


Member Function Documentation

Float BaTime::durationAsSeconds Duration    [inline, static]
 

Return a floating point value representing the given duration as a number, measured in seconds.

Definition at line 39 of file baTime.inline.h.

Float BaTime::instantAsSeconds Instant    [inline, static]
 

Return a floating point value representing the given instant as a number, measured in seconds.

Definition at line 32 of file baTime.inline.h.


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 15:58:52 2003 for Freecloth by doxygen1.3-rc3