Functions | Variables
xstime.h File Reference
#include "xstypesconfig.h"
#include <time.h>
#include "pstdint.h"
#include "xstimestamp.h"
Include dependency graph for xstime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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 array dest[9] = { '2', '0', '1', '0', '1', '2', '2', '5' }. More...
 
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 array dest[8] = {'2', '0', '1', '0', '1', '2', '2', '5' }. More...
 
XSTYPES_DLL_API int64_t XsTime_getDateTime (struct tm *date)
 Retrieves the date and time (platform-independent) More...
 
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:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}. More...
 
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:01.23 is stored as an array dest[8] = { '1', '4', '2', '5', '0', '1', '2', '3'}. More...
 
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. More...
 
XSTYPES_DLL_API void XsTime_initializeTime (void)
 Stabilize the clock. More...
 
XSTYPES_DLL_API int64_t XsTime_localToUtc ()
 Returns the conversion value from local time to UTC time in ms. More...
 
XSTYPES_DLL_API void XsTime_msleep (uint32_t ms)
 Make the current thread sleep for at least ms milliseconds. More...
 
XSTYPES_DLL_API int64_t XsTime_timeStampNow (XsTimeStamp *now)
 Returns the current time in ms since the epoch (Jan 1st 1970) More...
 
XSTYPES_DLL_API void XsTime_udelay (uint64_t us)
 Delays the current thread for at least us microseconds. More...
 
XSTYPES_DLL_API int64_t XsTime_utcToLocal ()
 Returns the conversion value from UTC time to local time in ms. More...
 

Variables

const XSTYPES_DLL_API XsTimeStamp XsTime_milliSecPerDay
 The number of milliseconds in a normal day. More...
 
const XSTYPES_DLL_API XsTimeStamp XsTime_secPerDay
 The number of seconds in a normal day. More...
 
const XSTYPES_DLL_API XsTimeStamp XsTime_timeStampMax
 The maximum positive value of an XsTimeStamp value. More...
 

Variable Documentation

◆ XsTime_milliSecPerDay

const XSTYPES_DLL_API XsTimeStamp XsTime_milliSecPerDay

The number of milliseconds in a normal day.

Definition at line 91 of file xstime.c.

◆ XsTime_secPerDay

const XSTYPES_DLL_API XsTimeStamp XsTime_secPerDay

The number of seconds in a normal day.

Definition at line 88 of file xstime.c.

◆ XsTime_timeStampMax

const XSTYPES_DLL_API XsTimeStamp XsTime_timeStampMax

The maximum positive value of an XsTimeStamp value.

Definition at line 94 of file xstime.c.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21