9 #ifndef __libutilxx__sella__util__TimeStamp_H__
10 #define __libutilxx__sella__util__TimeStamp_H__
12 #include "../../common.h"
25 TimeStamp(
const struct timeval &tv)
throw ();
33 TimeStamp & operator = (
const struct timeval &value)
throw ();
34 TimeStamp & operator = (int64_t micro)
throw ();
37 TimeStamp & operator += (
const struct timeval &value)
throw ();
38 TimeStamp & operator += (int64_t micro)
throw ();
41 TimeStamp & operator -= (
const struct timeval &value)
throw ();
42 TimeStamp & operator -= (int64_t micro)
throw ();
45 TimeStamp & operator *= (
const struct timeval &value)
throw ();
46 TimeStamp & operator *= (int64_t micro)
throw ();
49 TimeStamp & operator /= (
const struct timeval &value)
throw ();
50 TimeStamp & operator /= (int64_t micro)
throw ();
53 TimeStamp operator + (
const struct timeval &value)
throw ();
54 TimeStamp operator + (int64_t micro)
throw ();
57 TimeStamp operator - (
const struct timeval &value)
throw ();
58 TimeStamp operator - (int64_t micro)
throw ();
61 TimeStamp operator * (
const struct timeval &value)
throw ();
62 TimeStamp operator * (int64_t micro)
throw ();
65 TimeStamp operator / (
const struct timeval &value)
throw ();
66 TimeStamp operator / (int64_t micro)
throw ();
68 bool operator == (
const TimeStamp &other)
const throw ();
69 bool operator != (
const TimeStamp &other)
const throw ();
70 bool operator >= (
const TimeStamp &other)
const throw ();
71 bool operator <= (
const TimeStamp &other)
const throw ();
72 bool operator > (
const TimeStamp &other)
const throw ();
73 bool operator < (
const TimeStamp &other)
const throw ();
75 int64_t getEpochMicroseconds()
const throw ();
76 int64_t getEpochSeconds()
const throw ();
78 void update()
throw ();
81 static int64_t now()
throw ();