25 #ifndef __BIASTIMESTAMP_HH__
26 #define __BIASTIMESTAMP_HH__
34 #include <Base/Debug/Debug.hh>
36 #include <Base/Common/W32Compat.hh>
58 bool operator>(
const long long &ts)
const;
60 bool operator<(
const long long &ts)
const;
61 bool operator>=(
const TimeStamp &ts)
const;
62 bool operator>=(
const long long &ts)
const;
63 bool operator<=(
const TimeStamp &ts)
const;
64 bool operator<=(
const long long &ts)
const;
65 bool operator==(
const TimeStamp &ts)
const;
66 bool operator==(
const long long &ts)
const;
67 bool operator!=(
const TimeStamp &ts)
const;
68 bool operator!=(
const long long &ts)
const;
71 TimeStamp& operator=(
const long long &ts);
82 TimeStamp operator%(
const long long &ts)
const;
87 inline long long GetMSec()
const {
return msec_;}
139 gettimeofday(&tmp,NULL);
140 return TimeStamp(((
long long) tmp.tv_sec)*1000 + (tmp.tv_usec / 1000));
170 BIASCommon_EXPORT std::ostream&
operator<<(std::ostream& os,
176 BIASCommon_EXPORT std::istream&
operator>>(std::istream& is,
181 #endif //__BIASTIMESTAMP_HH__
TimeStamp GenerateTimeStamp(const long long &msec)
Generate a timestamp with offset 'msec' from given base-time.
DualQuaternion< T > operator/(const DualQuaternion< T > &l, const T &scalar)
long long GetMSec() const
Get the timestamp as long long int.
DualQuaternion< T > operator-(const DualQuaternion< T > &l, const DualQuaternion< T > &r)
void SetBaseTime(const long long msecOffset=0)
Sets system time as base-time for stamp generation.
Generates absolute timestamps with a certain offset from given base-time.
DualQuaternion< T > operator+(const DualQuaternion< T > &l, const DualQuaternion< T > &r)
TimeStamp GenerateTimeStamp(const TimeStamp &ts)
bool operator>(const BIAS::Polynom &p1, const BIAS::Polynom &p2)
bool operator<(const BIAS::Polynom &p1, const BIAS::Polynom &p2)
std::ostream & operator<<(std::ostream &os, const Array2D< T > &arg)
DualQuaternion< T > operator*(const DualQuaternion< T > &l, const T &scalar)
TimeStampGen()
Standard Ctor and Dtor.
holds system time in milliseconds
TimeStamp Abs()
Returns the absolute value timestamp.
BIASCommon_EXPORT std::istream & operator>>(std::istream &is, BIAS::TimeStamp &ts)
Standard input operator for TimeStamps.
TimeStamp GenerateTimeStamp()
Generate a timestamp from system time.