EMIPLIB
Public Member Functions | Static Public Member Functions

MIPTime Class Reference

This class is used for timing purposes. More...

#include <miptime.h>

List of all members.

Public Member Functions

 MIPTime (real_t t=0.0)
 Creates a time object containing the time corresponding to t.
 MIPTime (int64_t seconds, int64_t microSeconds)
 Creates a time object containing the time corresponding to the two parameters.
int64_t getSeconds () const
 Returns the number of seconds contained in the time object.
int64_t getMicroSeconds () const
 Returns the number of microseconds contained in the time object.
real_t getValue () const
 Returns a real value describing the time contained in this object.

Static Public Member Functions

static MIPTime getCurrentTime ()
 Returns a MIPTime object containing the current time.
static void wait (const MIPTime &delay)
 Pauses the current thread for the time contained in delay.

Detailed Description

This class provides some time handling functions.


Constructor & Destructor Documentation

MIPTime::MIPTime ( real_t  t = 0.0) [inline]

Referenced by getCurrentTime().

MIPTime::MIPTime ( int64_t  seconds,
int64_t  microSeconds 
) [inline]

Member Function Documentation

MIPTime MIPTime::getCurrentTime ( ) [inline, static]

References MIPTime().

int64_t MIPTime::getMicroSeconds ( ) const [inline]

Referenced by wait().

int64_t MIPTime::getSeconds ( ) const [inline]

Referenced by wait().

real_t MIPTime::getValue ( ) const [inline]

Referenced by wait().

void MIPTime::wait ( const MIPTime delay) [inline, static]

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