SNode.C
|
#include <Timeval.h>
Public Member Functions | |
Timeval () noexcept | |
Timeval (const std::initializer_list< time_t > &initList) noexcept | |
Timeval (const Timeval &timeVal) noexcept=default | |
Timeval (double time) noexcept | |
Timeval (const timeval &timeVal) noexcept | |
Timeval & | operator= (const Timeval &timeVal) |
Timeval & | operator= (const timeval &timeVal) |
Timeval | operator+ (const Timeval &timeVal) const |
Timeval | operator- (const Timeval &timeVal) const |
Timeval | operator* (double mul) const |
Timeval & | operator+= (const Timeval &timeVal) |
Timeval & | operator-= (const Timeval &timeVal) |
Timeval & | operator*= (double mul) |
Timeval | operator- () const |
bool | operator< (const Timeval &timeVal) const |
bool | operator> (const Timeval &timeVal) const |
bool | operator<= (const Timeval &timeVal) const |
bool | operator>= (const Timeval &timeVal) const |
bool | operator== (const Timeval &timeVal) const |
bool | operator!= (const Timeval &timeVal) const |
timeval * | operator& () |
const timeval * | operator& () const |
timespec | getTimespec () const |
int | getMs () const |
double | getMsd () const |
Static Public Member Functions | |
static Timeval | currentTime () |
Private Member Functions | |
const Timeval & | normalize () |
Private Attributes | |
timeval | timeVal = {0, 0} |
Friends | |
std::ostream & | operator<< (std::ostream &ostream, const utils::Timeval &timeVal) |
Timeval | operator* (double mul, const Timeval &timeVal) |
|
noexcept |
Definition at line 33 of file Timeval.cpp.
References timeVal.
Referenced by core::EventMultiplexer::getNextTimeout().
|
noexcept |
|
defaultnoexcept |
Referenced by core::socket::stream::SocketReader::SocketReader().
|
noexcept |
Definition at line 43 of file Timeval.cpp.
References normalize(), and timeVal.
|
noexcept |
Definition at line 50 of file Timeval.cpp.
References timeVal.
Referenced by operator-().
|
static |
Definition at line 54 of file Timeval.cpp.
References utils::system::gettimeofday(), and operator&().
Referenced by core::DescriptorEventPublisher::enable(), core::EventMultiplexer::signal(), core::EventMultiplexer::terminate(), and core::EventMultiplexer::tick().
int utils::Timeval::getMs | ( | ) | const |
Definition at line 155 of file Timeval.cpp.
References timeVal.
double utils::Timeval::getMsd | ( | ) | const |
timespec utils::Timeval::getTimespec | ( | ) | const |
Definition at line 151 of file Timeval.cpp.
References timeVal.
|
private |
Definition at line 182 of file Timeval.cpp.
References timeVal.
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), and Timeval().
bool utils::Timeval::operator!= | ( | const Timeval & | timeVal | ) | const |
Definition at line 143 of file Timeval.cpp.
References operator==().
timeval * utils::Timeval::operator& | ( | ) |
Definition at line 147 of file Timeval.cpp.
References timeVal.
Referenced by currentTime().
const timeval * utils::Timeval::operator& | ( | ) | const |
Definition at line 178 of file Timeval.cpp.
References timeVal.
Referenced by operator=().
Timeval utils::Timeval::operator* | ( | double | mul | ) | const |
Definition at line 94 of file Timeval.cpp.
References normalize(), and timeVal.
Referenced by operator*=().
Timeval & utils::Timeval::operator*= | ( | double | mul | ) |
Definition at line 113 of file Timeval.cpp.
References normalize(), operator*(), and operator=().
Definition at line 76 of file Timeval.cpp.
References normalize(), and timeVal.
Referenced by operator+=().
Definition at line 103 of file Timeval.cpp.
References normalize(), operator+(), and operator=().
Timeval utils::Timeval::operator- | ( | ) | const |
Definition at line 118 of file Timeval.cpp.
References normalize(), Timeval(), and timeVal.
Definition at line 85 of file Timeval.cpp.
References normalize(), and timeVal.
Referenced by operator-=().
Definition at line 108 of file Timeval.cpp.
References normalize(), operator-(), and operator=().
bool utils::Timeval::operator< | ( | const Timeval & | timeVal | ) | const |
Definition at line 122 of file Timeval.cpp.
References timeVal.
Referenced by core::TimerEventPublisher::timernode_lt::operator()(), operator==(), operator>(), and operator>=().
bool utils::Timeval::operator<= | ( | const Timeval & | timeVal | ) | const |
Definition at line 131 of file Timeval.cpp.
References operator>().
Definition at line 61 of file Timeval.cpp.
References operator&(), and timeVal.
Referenced by database::mariadb::MariaDBCommand::commandStart(), core::DescriptorEventPublisher::getNextTimeout(), core::EventMultiplexer::getNextTimeout(), operator*=(), operator+=(), and operator-=().
Timeval & utils::Timeval::operator= | ( | const timeval & | timeVal | ) |
Definition at line 70 of file Timeval.cpp.
References timeVal.
bool utils::Timeval::operator== | ( | const Timeval & | timeVal | ) | const |
Definition at line 139 of file Timeval.cpp.
References operator<(), and operator>().
Referenced by operator!=().
bool utils::Timeval::operator> | ( | const Timeval & | timeVal | ) | const |
Definition at line 127 of file Timeval.cpp.
References operator<().
Referenced by operator<=(), and operator==().
bool utils::Timeval::operator>= | ( | const Timeval & | timeVal | ) | const |
Definition at line 135 of file Timeval.cpp.
References operator<().
Definition at line 201 of file Timeval.cpp.
|
friend |
Definition at line 196 of file Timeval.cpp.
|
private |
Definition at line 77 of file Timeval.h.
Referenced by getMs(), getMsd(), getTimespec(), normalize(), operator&(), operator&(), operator*(), operator+(), operator-(), operator-(), operator<(), operator=(), operator=(), Timeval(), Timeval(), Timeval(), and Timeval().