iaux::iaTime Class Reference

#include <iaTime.h>

Public Member Functions

 iaTime ()=default
 
 iaTime (const iaTime &other)
 
 iaTime (int64 microSeconds)
 
void operator+= (const iaTime &time)
 
iaTime operator+ (const iaTime &time) const
 
void operator-= (const iaTime &time)
 
iaTime operator- (const iaTime &time) const
 
void operator*= (float64 scalar)
 
iaTime operator* (float64 scalar) const
 
void operator/= (float64 scalar)
 
iaTime operator/ (float64 scalar) const
 
bool operator== (const iaTime &time) const
 
bool operator!= (const iaTime &time) const
 
bool operator< (const iaTime &time) const
 
bool operator> (const iaTime &time) const
 
bool operator<= (const iaTime &time) const
 
bool operator>= (const iaTime &time) const
 
int64 getMicroseconds () const
 
float64 getSeconds () const
 
float64 getMilliseconds () const
 

Static Public Member Functions

static iaTime getNow ()
 
static iaTime fromSeconds (float64 time)
 
static iaTime fromMilliseconds (float64 time)
 
static iaTime fromMicroseconds (int64 time)
 

Detailed Description

stores time

Constructor & Destructor Documentation

◆ iaTime() [1/3]

iaux::iaTime::iaTime ( )
default

◆ iaTime() [2/3]

iaux::iaTime::iaTime ( const iaTime other)

◆ iaTime() [3/3]

iaux::iaTime::iaTime ( int64  microSeconds)

init with micro seconds

Parameters
microSecondstime in micro seconds

Member Function Documentation

◆ fromMicroseconds()

iaTime iaux::iaTime::fromMicroseconds ( int64  time)
static
Returns
time object based on given micro seconds seconds
Parameters
timetime in micro seconds

◆ fromMilliseconds()

iaTime iaux::iaTime::fromMilliseconds ( float64  time)
static
Returns
time object based on given milli seconds
Parameters
timetime in milli seconds

◆ fromSeconds()

iaTime iaux::iaTime::fromSeconds ( float64  time)
static
Returns
time object based on given seconds
Parameters
timetime in seconds

◆ getMicroseconds()

int64 iaux::iaTime::getMicroseconds ( ) const
Returns
time in micro seconds

◆ getMilliseconds()

float64 iaux::iaTime::getMilliseconds ( ) const
Returns
time in milliseconds

◆ getNow()

iaTime iaux::iaTime::getNow ( )
static
Returns
current time since application was started

◆ getSeconds()

float64 iaux::iaTime::getSeconds ( ) const
Returns
time in seconds

◆ operator!=()

bool iaux::iaTime::operator!= ( const iaTime time) const
Returns
true if both times are not equal

◆ operator*()

iaTime iaux::iaTime::operator* ( float64  scalar) const

multiplies time with scalar

Parameters
scalarthe value to multiply the time with
Returns
the new time

◆ operator*=()

void iaux::iaTime::operator*= ( float64  scalar)

multiplies this time with scalar

Parameters
scalarthe value to multiply the time with

◆ operator+()

iaTime iaux::iaTime::operator+ ( const iaTime time) const

adds time given time to this time and returns result

Parameters
timegiven time
Returns
new time

◆ operator+=()

void iaux::iaTime::operator+= ( const iaTime time)

adds time given time to this time

Parameters
timegiven time

◆ operator-()

iaTime iaux::iaTime::operator- ( const iaTime time) const

subtracts time given time from this time and returns result

Parameters
timegiven time
Returns
new time

◆ operator-=()

void iaux::iaTime::operator-= ( const iaTime time)

subtracts time given time from this time

Parameters
timegiven time

◆ operator/()

iaTime iaux::iaTime::operator/ ( float64  scalar) const

divides time with scalar

Parameters
scalarthe value to divide the time with
Returns
the new time

◆ operator/=()

void iaux::iaTime::operator/= ( float64  scalar)

divides this time with scalar

Parameters
scalarthe value to divide the time with

◆ operator<()

bool iaux::iaTime::operator< ( const iaTime time) const
Returns
true if this time is smaller then given time
Parameters
timethe given time

◆ operator<=()

bool iaux::iaTime::operator<= ( const iaTime time) const
Returns
true if this time is smaller or equal then given time
Parameters
timethe given time

◆ operator==()

bool iaux::iaTime::operator== ( const iaTime time) const
Returns
true if both times are equal

◆ operator>()

bool iaux::iaTime::operator> ( const iaTime time) const
Returns
true if this time is greater then given time
Parameters
timethe given time

◆ operator>=()

bool iaux::iaTime::operator>= ( const iaTime time) const
Returns
true if this time is greater or equal then given time
Parameters
timethe given time

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