EMIPLIB  1.2.1
Public Member Functions | Static Public Member Functions | List of all members
MIPTime Class Reference

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

#include <miptime.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

This class provides some time handling functions.

Constructor & Destructor Documentation

MIPTime::MIPTime ( real_t  t = 0.0)
inline
MIPTime::MIPTime ( int64_t  seconds,
int64_t  microSeconds 
)
inline

Member Function Documentation

MIPTime MIPTime::getCurrentTime ( )
inlinestatic
int64_t MIPTime::getMicroSeconds ( ) const
inline
int64_t MIPTime::getSeconds ( ) const
inline
real_t MIPTime::getValue ( ) const
inline
void MIPTime::wait ( const MIPTime delay)
inlinestatic

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