Go to the documentation of this file.
105 #pragma GCC diagnostic push
106 #pragma GCC diagnostic ignored "-Wunused-variable"
115 #pragma GCC diagnostic pop
119 inline uint32_t getTimeOfDay(tm* date_ = NULL, time_t* secs_ = NULL)
125 inline int64_t getDateTime(tm* date = 0)
131 inline void getDateAsString(
char* dest, tm
const* date = 0)
137 inline void getTimeAsString(
char* dest, tm
const* date = 0)
147 inline XsString getDateAsString(tm
const* date = 0)
160 inline XsString getTimeAsString(tm
const* time = 0)
169 inline void msleep(
uint32_t ms) noexcept
175 inline void udelay(uint64_t us) noexcept
181 inline void initializeTime()
XSTYPES_DLL_API void XsTime_initializeTime(void)
Stabilize the clock.
XSTYPES_DLL_API void XsTime_udelay(uint64_t us)
Delays the current thread for at least us microseconds.
const XSTYPES_DLL_API XsTimeStamp XsTime_milliSecPerDay
The number of milliseconds in a normal day.
XSTYPES_DLL_API void XsTime_msleep(uint32_t ms)
Make the current thread sleep for at least ms milliseconds.
XSTYPES_DLL_API uint32_t XsTime_getTimeOfDay(struct tm *date_, time_t *secs_)
The function returns the current time of day in ms since midnight.
const XSTYPES_DLL_API XsTimeStamp XsTime_secPerDay
The number of seconds in a normal day.
Namespace for time and date constants and operations.
XSTYPES_DLL_API int64_t XsTime_getDateTime(struct tm *date)
Retrieves the date and time (platform-independent)
XSTYPES_DLL_API int64_t XsTime_localToUtc()
Returns the conversion value from local time to UTC time in ms.
XSTYPES_DLL_API void XsTime_getTimeAsWString(wchar_t *dest, struct tm const *time)
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:...
XSTYPES_DLL_API void XsTime_getTimeAsString(char *dest, struct tm const *time)
Retrieves the time as binary The format is HHMMSShh (where H is hour and 'h' is hundredths) so 14:25:...
XSTYPES_DLL_API void XsTime_getDateAsWString(wchar_t *dest, struct tm const *date)
Retrieves the date as wstring representation The format is YYYYMMDD so 25 dec 2010 is stored as an ar...
XSTYPES_DLL_API void XsTime_getDateAsString(char *dest, struct tm const *date)
Retrieves the date as string representation The format is YYYYMMDD so 25 dec 2010 is stored as an arr...
XSTYPES_DLL_API int64_t XsTime_timeStampNow(XsTimeStamp *now)
Returns the current time in ms since the epoch (Jan 1st 1970)
XSTYPES_DLL_API int64_t XsTime_utcToLocal()
Returns the conversion value from UTC time to local time in ms.
A 0-terminated managed string of characters.
const XSTYPES_DLL_API XsTimeStamp XsTime_timeStampMax
The maximum positive value of an XsTimeStamp value.
This class contains method to set, retrieve and compare timestamps.