R-Type
R-Type project
KapEngine::Time::ETime Class Reference

Engine Time is internal time system of engine. More...

#include <ETime.hpp>

Public Member Functions

 ETime (int64_t _val)
 
 ETime (ETime const &_val)
 
virtual double asSecond () const
 avoir le temps en secondes More...
 
virtual int32_t asMilliSecond () const
 avoir le temps en millisecondes More...
 
virtual int64_t asMicroSecond () const
 avoir le temps en microsecondes More...
 
virtual ETimeoperator= (ETime const &_time)
 
virtual ETimeoperator= (ETime const *_time)
 
virtual ETimeoperator= (int64_t const &_val)
 
virtual bool operator< (ETime const &_time)
 
virtual bool operator< (int64_t const &_time)
 
virtual bool operator<= (ETime const &_time)
 
virtual bool operator<= (int64_t const &_time)
 
virtual bool operator> (ETime const &_time)
 
virtual bool operator> (int64_t const &_time)
 
virtual bool operator>= (ETime const &_time)
 
virtual bool operator>= (int64_t const &_time)
 
virtual ETimeoperator+= (ETime const &_time)
 
void setSeconds (float s)
 Set the Seconds of time. More...
 
void setMilliseconds (int64_t ms)
 Set the Milliseconds of time. More...
 
void setMicroseconds (int64_t mc)
 Set the Microseconds of time. More...
 

Protected Attributes

int64_t _micro_s
 

Detailed Description

Engine Time is internal time system of engine.

Member Function Documentation

◆ asMicroSecond()

int64_t KapEngine::Time::ETime::asMicroSecond ( ) const
inlinevirtual

avoir le temps en microsecondes

Returns
int64_t

◆ asMilliSecond()

int32_t KapEngine::Time::ETime::asMilliSecond ( ) const
inlinevirtual

avoir le temps en millisecondes

Returns
int32_t

◆ asSecond()

double KapEngine::Time::ETime::asSecond ( ) const
inlinevirtual

avoir le temps en secondes

Returns
double

◆ setMicroseconds()

void KapEngine::Time::ETime::setMicroseconds ( int64_t  mc)
inline

Set the Microseconds of time.

Parameters
mcmicroseconds

◆ setMilliseconds()

void KapEngine::Time::ETime::setMilliseconds ( int64_t  ms)
inline

Set the Milliseconds of time.

Parameters
msmilliseconds

◆ setSeconds()

void KapEngine::Time::ETime::setSeconds ( float  s)
inline

Set the Seconds of time.

Parameters
sseconds

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