#include <kogmo_time.hxx>
Public Member Functions | |
Timestamp (const kogmo_timestamp_t &t=0) | |
Timestamp (std::string str) | |
Timestamp & | now (void) |
void | settime (const kogmo_timestamp_t &t) |
void | settime (const char *str) |
void | settime_secs (const unsigned long int &secs, const unsigned long int &nsecs=0) |
kogmo_timestamp_t | timestamp (void) const |
int64_t | diffns (const Timestamp &End) const |
double | diffs (const Timestamp &End) const |
void | addns (const int64_t &ns) |
void | adds (const double &secs) |
Timestamp & | operator+= (const double &secs) |
Timestamp & | operator-= (const double &secs) |
operator long long int () | |
std::string | string (void) const |
Static Public Member Functions | |
static Timestamp | getNow (void) |
Protected Attributes | |
kogmo_timestamp_t | ts |
Definition at line 27 of file kogmo_time.hxx.
KogniMobil::Timestamp::Timestamp | ( | const kogmo_timestamp_t & | t = 0 |
) | [inline] |
Definition at line 34 of file kogmo_time.hxx.
KogniMobil::Timestamp::Timestamp | ( | std::string | str | ) | [inline] |
Definition at line 39 of file kogmo_time.hxx.
void KogniMobil::Timestamp::addns | ( | const int64_t & | ns | ) | [inline] |
Definition at line 88 of file kogmo_time.hxx.
void KogniMobil::Timestamp::adds | ( | const double & | secs | ) | [inline] |
Definition at line 93 of file kogmo_time.hxx.
int64_t KogniMobil::Timestamp::diffns | ( | const Timestamp & | End | ) | const [inline] |
Definition at line 78 of file kogmo_time.hxx.
double KogniMobil::Timestamp::diffs | ( | const Timestamp & | End | ) | const [inline] |
Definition at line 83 of file kogmo_time.hxx.
static Timestamp KogniMobil::Timestamp::getNow | ( | void | ) | [inline, static] |
Definition at line 55 of file kogmo_time.hxx.
Timestamp& KogniMobil::Timestamp::now | ( | void | ) | [inline] |
Definition at line 44 of file kogmo_time.hxx.
KogniMobil::Timestamp::operator long long int | ( | ) | [inline] |
Definition at line 112 of file kogmo_time.hxx.
Timestamp& KogniMobil::Timestamp::operator+= | ( | const double & | secs | ) | [inline] |
Definition at line 98 of file kogmo_time.hxx.
Timestamp& KogniMobil::Timestamp::operator-= | ( | const double & | secs | ) | [inline] |
Definition at line 104 of file kogmo_time.hxx.
void KogniMobil::Timestamp::settime | ( | const char * | str | ) | [inline] |
Definition at line 62 of file kogmo_time.hxx.
void KogniMobil::Timestamp::settime | ( | const kogmo_timestamp_t & | t | ) | [inline] |
Definition at line 50 of file kogmo_time.hxx.
void KogniMobil::Timestamp::settime_secs | ( | const unsigned long int & | secs, | |
const unsigned long int & | nsecs = 0 | |||
) | [inline] |
Definition at line 67 of file kogmo_time.hxx.
std::string KogniMobil::Timestamp::string | ( | void | ) | const [inline] |
Definition at line 117 of file kogmo_time.hxx.
kogmo_timestamp_t KogniMobil::Timestamp::timestamp | ( | void | ) | const [inline] |
Definition at line 73 of file kogmo_time.hxx.
kogmo_timestamp_t KogniMobil::Timestamp::ts [protected] |
Definition at line 30 of file kogmo_time.hxx.