18 #define XSTIMESTAMP_INITIALIZER \ 89 inline int64_t msTimeOfDay()
const 91 return m_msTime % (24 * 60 * 60 * 1000);
95 inline double secTime()
const {
return ((
double)
m_msTime) * 0.001; }
139 inline bool operator<=(
const XsTimeStamp& other)
const 153 inline bool operator>(
const XsTimeStamp& other)
const 160 inline bool operator>=(
const XsTimeStamp& other)
const 177 inline bool operator<=(
int other)
const {
return m_msTime <= other; }
182 inline bool operator>(
int other)
const {
return m_msTime > other; }
185 inline bool operator>=(
int other)
const {
return m_msTime >= other; }
193 inline int32_t milliSecondPart()
const 199 inline int32_t secondPart()
const 205 inline int32_t minutePart()
const 211 inline int32_t hourPart()
const
XSTYPES_DLL_API int64_t XsTimeStamp_now(struct XsTimeStamp *thisPtr)
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
XSTYPES_DLL_API void XsTimeStamp_setMilliSecondTime(struct XsTimeStamp *thisPtr, int64_t t)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
XSTYPES_DLL_API int32_t XsTimeStamp_secondPart(const struct XsTimeStamp *thisPtr)
XSTYPES_DLL_API int64_t XsTimeStamp_maxValue()
std::vector< T1 > & operator+=(std::vector< T1 > &a, const std::vector< T2 > &b)
a+=b (element-wise sum)
XSTYPES_DLL_API int64_t XsTimeStamp_secondTime(const struct XsTimeStamp *thisPtr)
int64_t m_msTime
The timestamp value.
struct XsTimeStamp XsTimeStamp
Class for managing timestamps in a unified way.
XSTYPES_DLL_API int32_t XsTimeStamp_hourPart(const struct XsTimeStamp *thisPtr)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
A structure for storing UTC Time values.
XSTYPES_DLL_API int32_t XsTimeStamp_minutePart(const struct XsTimeStamp *thisPtr)
XSTYPES_DLL_API double XsTimeStamp_timeOfDay(const struct XsTimeStamp *thisPtr)
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
XSTYPES_DLL_API void XsTimeStamp_toUtcTime(struct XsTimeStamp *thisPtr, struct XsUtcTime *utc)
iterator operator++(int)
A thread-safe (ts) container which minimally emulates a std::map<>'s [] and find() methods but which ...
bool operator<(const COccupancyGridMap2D::TPairLikelihoodIndex &e1, const COccupancyGridMap2D::TPairLikelihoodIndex &e2)
bool operator!=(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
XSTYPES_DLL_API int64_t XsTimeStamp_fromUtcTime(struct XsTimeStamp *thisPtr, const struct XsUtcTime *utc)
XSTYPES_DLL_API int32_t XsTimeStamp_milliSecondPart(const struct XsTimeStamp *thisPtr)