#include <Time.h>
Public Member Functions | |
Time () | |
default constructor | |
Time (long int s, long int u) | |
long int constructor | |
Time (Decimal t) | |
Decimal constructor. | |
Time (const Time &t) | |
copy constructor | |
Time (stringstream &ss) | |
string constructor | |
Time & | operator= (const Time &t) |
assigment operator = | |
Time & | operator+= (const Time &t) |
compound assignment operator += | |
Time & | operator-= (const Time &t) |
compound assignment operator -= | |
Time | operator+ (const Time &other) const |
binary arithmetic operator + | |
Time | operator- (const Time &other) const |
binary arithmetic operator - | |
Time & | operator*= (Decimal scalar) |
compound assignment operator * | |
Time & | operator* (Decimal scalar) |
compound assignment operator * | |
bool | operator== (const Time &other) const |
compound operator == | |
bool | operator!= (const Time &other) const |
compound operator != | |
bool | operator> (const Time &other) const |
greater than operator > | |
bool | operator< (const Time &other) const |
less than operator > | |
bool | operator>= (const Time &other) const |
geq operator > | |
bool | operator<= (const Time &other) const |
leq operator > | |
long int | sec () const |
Gets the seconds. | |
long int | usec () const |
Gets the microseconds. | |
void | setTime (const Decimal &t) |
Set Time. | |
void | setTime (const long int &insec, const long int &inusec) |
Set Time. | |
void | setTime (const Time &time) |
Set Time. | |
Decimal | dCast () |
decimal cast of Time (in secs) | |
Decimal | freq () |
frequency | |
string | print () |
print | |
string | printFreq () |
print the frequency | |
string | printDCast () |
string | dateTime () |
string | exportAsString () const |
Protected Attributes | |
long int | _sec |
long int | _usec |
Static Protected Attributes | |
static const int | TIME_RESOLUTION = 1000000 |
long int MipBaselib::Time::_sec [protected] |