10#ifndef __D_TIMESTAMP__
11#define __D_TIMESTAMP__
61 inline void setTime(
unsigned long secs,
unsigned long usecs){
71 inline void getTime(
unsigned long &secs,
unsigned long &usecs)
const
81 void setTime(
const string &stime);
184 string Format(
bool machine_friendly =
false)
const;
191 static string Format(
double s);
Timestamp operator+(double s) const
void getTime(unsigned long &secs, unsigned long &usecs) const
double getFloatTime() const
bool operator==(const Timestamp &t) const
void setTime(unsigned long secs, unsigned long usecs)
bool operator<=(const Timestamp &t) const
Timestamp minus(unsigned long s, unsigned long us) const
tOptions
Options to initiate a timestamp.
bool operator<(const Timestamp &t) const
Timestamp & operator+=(double s)
Timestamp & operator-=(double s)
unsigned long m_secs
Seconds.
Timestamp plus(unsigned long s, unsigned long us) const
double operator-(const Timestamp &t) const
string Format(bool machine_friendly=false) const
bool operator>(const Timestamp &t) const
bool operator>=(const Timestamp &t) const
string getStringTime() const
unsigned long m_usecs
Microseconds.