MipBaselib::Time Class Reference

time class, provide a representation of time in seconds and microseconds More...

#include <Time.h>

Inheritance diagram for MipBaselib::Time:

MipBaselib::SimTime

List of all members.

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
Timeoperator= (const Time &t)
 assigment operator =
Timeoperator+= (const Time &t)
 compound assignment operator +=
Timeoperator-= (const Time &t)
 compound assignment operator -=
Time operator+ (const Time &other) const
 binary arithmetic operator +
Time operator- (const Time &other) const
 binary arithmetic operator -
Timeoperator*= (Decimal scalar)
 compound assignment operator *
Timeoperator* (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


Detailed Description

time class, provide a representation of time in seconds and microseconds

Author:
Antonio Franchi
Examples:

exampleThread.cpp.


Member Data Documentation

long int MipBaselib::Time::_sec [protected]


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6