Go to the documentation of this file.
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_secondTime(const struct XsTimeStamp *thisPtr)
XSTYPES_DLL_API int32_t XsTimeStamp_hourPart(const struct XsTimeStamp *thisPtr)
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
XSTYPES_DLL_API int64_t XsTimeStamp_maxValue()
XSTYPES_DLL_API int64_t XsTimeStamp_fromUtcTime(struct XsTimeStamp *thisPtr, const struct XsUtcTime *utc)
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
XSTYPES_DLL_API void XsTimeStamp_toUtcTime(struct XsTimeStamp *thisPtr, struct XsUtcTime *utc)
XSTYPES_DLL_API double XsTimeStamp_timeOfDay(const struct XsTimeStamp *thisPtr)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
bool operator<(const COccupancyGridMap2D::TPairLikelihoodIndex &e1, const COccupancyGridMap2D::TPairLikelihoodIndex &e2)
A structure for storing UTC Time values.
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
XSTYPES_DLL_API int32_t XsTimeStamp_milliSecondPart(const struct XsTimeStamp *thisPtr)
std::vector< T1 > & operator+=(std::vector< T1 > &a, const std::vector< T2 > &b)
a+=b (element-wise sum)
XSTYPES_DLL_API void XsTimeStamp_setMilliSecondTime(struct XsTimeStamp *thisPtr, int64_t t)
iterator operator++(int)
A thread-safe (ts) container which minimally emulates a std::map<>'s [] and find() methods but which ...
XSTYPES_DLL_API int64_t XsTimeStamp_now(struct XsTimeStamp *thisPtr)
Class for managing timestamps in a unified way.
bool operator!=(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
int64_t m_msTime
The timestamp value.
XSTYPES_DLL_API int32_t XsTimeStamp_minutePart(const struct XsTimeStamp *thisPtr)
XSTYPES_DLL_API int32_t XsTimeStamp_secondPart(const struct XsTimeStamp *thisPtr)
struct XsTimeStamp XsTimeStamp
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |