10 #ifndef __D_TIMESTAMP__ 11 #define __D_TIMESTAMP__ 54 void setToCurrentTime();
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);
87 void setTime(
double s);
92 double getFloatTime()
const;
97 string getStringTime()
const;
105 double operator- (
const Timestamp &t)
const;
112 Timestamp plus(
unsigned long s,
unsigned long us)
const;
119 Timestamp minus(
unsigned long s,
unsigned long us)
const;
151 bool operator> (
const Timestamp &t)
const;
157 bool operator>= (
const Timestamp &t)
const;
163 bool operator== (
const Timestamp &t)
const;
175 bool operator<= (
const Timestamp &t)
const;
184 string Format(
bool machine_friendly =
false)
const;
191 static string Format(
double s);
tOptions
Options to initiate a timestamp.
void getTime(unsigned long &secs, unsigned long &usecs) const
void setTime(unsigned long secs, unsigned long usecs)
bool operator<(const HyperDijkstra::AdjacencyMapEntry &a, const HyperDijkstra::AdjacencyMapEntry &b)
unsigned long m_secs
Seconds.
unsigned long m_usecs
Microseconds.