OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
openjaus::system::Time Class Reference

This is a brief description. More...

#include <Time.h>

Public Member Functions

 Time ()
 
virtual ~Time ()
 
 Time (int new_sec, int new_microsec)
 
 Time (double new_sec)
 
int getSeconds () const
 Accessor to get the value of seconds. More...
 
bool setSeconds (int seconds)
 Accessor to set value of seconds. More...
 
int getMicroseconds () const
 Accessor to get the value of microseconds. More...
 
bool setMicroseconds (int microseconds)
 Accessor to set value of microseconds. More...
 
double inSec ()
 Operation inSec. More...
 
virtual std::string toString () const
 

Static Public Member Functions

static void sleep (int milliseconds)
 Operation sleep. More...
 
static Time getTime ()
 Operation getTime. More...
 
static double getTickCount_ms ()
 Operation getTickCount_ms. More...
 

Protected Attributes

int seconds
 
int microseconds
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Time &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Time *object)
 

Detailed Description

Detailed description.

Author
Name (name@.nosp@m.emai.nosp@m.l.com)

Constructor & Destructor Documentation

§ Time() [1/3]

openjaus::system::Time::Time ( )

§ ~Time()

openjaus::system::Time::~Time ( )
virtual

§ Time() [2/3]

openjaus::system::Time::Time ( int  new_sec,
int  new_microsec 
)

§ Time() [3/3]

openjaus::system::Time::Time ( double  new_sec)

Member Function Documentation

§ getMicroseconds()

int openjaus::system::Time::getMicroseconds ( ) const

§ getSeconds()

int openjaus::system::Time::getSeconds ( ) const

§ getTickCount_ms()

double openjaus::system::Time::getTickCount_ms ( )
static

§ getTime()

Time openjaus::system::Time::getTime ( void  )
static

§ inSec()

double openjaus::system::Time::inSec ( )

§ setMicroseconds()

bool openjaus::system::Time::setMicroseconds ( int  microseconds)
Parameters
microsecondsThe value of the new microseconds.

§ setSeconds()

bool openjaus::system::Time::setSeconds ( int  seconds)
Parameters
secondsThe value of the new seconds.

§ sleep()

void openjaus::system::Time::sleep ( int  milliseconds)
static
Parameters
milliseconds

§ toString()

std::string openjaus::system::Time::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Time object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Time object 
)
friend

Member Data Documentation

§ microseconds

int openjaus::system::Time::microseconds
protected

§ seconds

int openjaus::system::Time::seconds
protected

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