sisi4s
Loading...
Searching...
No Matches
sisi4s::Time Class Reference

#include <Time.hpp>

Inheritance diagram for sisi4s::Time:
Collaboration diagram for sisi4s::Time:

Public Member Functions

 Time ()
 
 Time (int64_t seconds, int64_t nanoSeconds)
 
 Time (Time const &t)
 
int64_t getSeconds () const
 
int64_t getFractions () const
 
double getFractionalSeconds () const
 
Timeoperator+= (Time const &t)
 
Timeoperator-= (Time const &t)
 

Static Public Member Functions

static Time getCurrentRealTime ()
 

Static Public Attributes

static constexpr int64_t FRACTIONS = 1000000000
 
static constexpr int FRACTION_DIGITS = 9
 

Detailed Description

The Time class manages time intervals and their manipulation in terms of seconds and nanoseconds. It is a wrapper of the timespec class of ctime.

Constructor & Destructor Documentation

◆ Time() [1/3]

sisi4s::Time::Time ( )
inline

◆ Time() [2/3]

sisi4s::Time::Time ( int64_t  seconds,
int64_t  nanoSeconds 
)
inline

◆ Time() [3/3]

sisi4s::Time::Time ( Time const &  t)
inline

Member Function Documentation

◆ getCurrentRealTime()

static Time sisi4s::Time::getCurrentRealTime ( )
inlinestatic
Here is the caller graph for this function:

◆ getFractionalSeconds()

double sisi4s::Time::getFractionalSeconds ( ) const
inline
Here is the caller graph for this function:

◆ getFractions()

int64_t sisi4s::Time::getFractions ( ) const
inline
Here is the caller graph for this function:

◆ getSeconds()

int64_t sisi4s::Time::getSeconds ( ) const
inline
Here is the caller graph for this function:

◆ operator+=()

Time & sisi4s::Time::operator+= ( Time const &  t)
inline

◆ operator-=()

Time & sisi4s::Time::operator-= ( Time const &  t)
inline

Member Data Documentation

◆ FRACTION_DIGITS

constexpr int sisi4s::Time::FRACTION_DIGITS = 9
staticconstexpr

◆ FRACTIONS

constexpr int64_t sisi4s::Time::FRACTIONS = 1000000000
staticconstexpr

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