Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

Time Utilities


Classes

class  O_SESSAME::ssfTime
 Simulation Time object. More...

Defines

#define TIME_PRECISION   15

Typedefs

typedef double O_SESSAME::ssfSeconds
typedef double O_SESSAME::ssfJulianDate

Functions

ssfJulianDate O_SESSAME::ssfTime::JulianDate (const ssfSeconds &_time)
 Calculates the Julian Date given a time in seconds since the system epoch.

Variables

ssfTime O_SESSAME::tickTime (-1)
 Initializes the tick/tock counter.


Define Documentation

#define TIME_PRECISION   15
 

Definition at line 54 of file Time.h.

Referenced by O_SESSAME::operator<<().


Typedef Documentation

typedef double O_SESSAME::ssfJulianDate
 

Definition at line 52 of file Time.h.

Referenced by O_SESSAME::ssfTime::GetEpochJulianDate(), O_SESSAME::ssfTime::GetJulianDate(), and O_SESSAME::ssfTime::JulianDate().

typedef double O_SESSAME::ssfSeconds
 

Definition at line 51 of file Time.h.

Referenced by O_SESSAME::ssfTime::GetEpoch(), O_SESSAME::ssfTime::GetSeconds(), main(), O_SESSAME::ssfTime::operator-(), Propagate(), O_SESSAME::ssfTime::SecondsSinceEpoch(), and O_SESSAME::ssfTime::ssfTime().


Function Documentation

ssfJulianDate JulianDate const ssfSeconds _time  )  [related, inherited]
 

Calculates the Julian Date given a time in seconds since the system epoch.

This function takes in seconds since epoch and returns the datetime in Julian Date format. Since the input time is seconds since system epoch (Jan 1, 1970 at midnight for linux), the JulianDate function uses the system gmtime() function to convert to a DateTime struct.

Warning:
be careful of differences in system epoch times (Unix vs. Windows).
Parameters:
_time The time to be converted in seconds since the system epoch time.
Returns:
this function returns the conversion from seconds since system epoch time to Julian Date.

Definition at line 31 of file Time.cpp.

References O_SESSAME::ssfJulianDate.

Referenced by O_SESSAME::ssfTime::GetEpochJulianDate(), O_SESSAME::ssfTime::GetJulianDate(), O_SESSAME::ssfTime::SetEpochJulianDate(), and O_SESSAME::ssfTime::SetJulianDate().


Variable Documentation

ssfTime O_SESSAME::tickTime(-1) [static]
 

Initializes the tick/tock counter.

Used for calculating the time during operations. First tick() is called, then when the operation has been completed tock() is called which returns the time (in seconds) since tick() was called.

See also:
tock()
tick();
for (int ii = 0; ii < 10; ++ii) {
    ii += ii*ii;
}
cout << tock();
the sample code would output the time it took to calculate $\sum{ii^2}$ to the console.

Referenced by O_SESSAME::tick().


Generated on Wed Sep 5 12:54:46 2007 for DSACSS Operational Code by  doxygen 1.3.9.1