xsens_imu
Classes | Namespaces | Functions
xsens_time.cpp File Reference
#include "xsens_time.h"
#include <sys/timeb.h>
#include <stdlib.h>
#include "pstdint.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <pthread.h>
#include <string.h>
#include <math.h>
#include <float.h>

Classes

struct  xsens::TimeSyncHistoryUnit
 A single time of receive / time of send pair. More...
 
class  xsens::TimeSyncPrivate
 Private data for the TimeSync class. More...
 

Namespaces

 xsens
 The namespace of all Xsens software since 2006.
 

Functions

uint32_t xsens::getTimeOfDay (tm *date_, time_t *secs_)
 A platform-independent clock. More...
 
int64_t xsens::getDateTime (tm *date=0)
 Retrieves the date and time (platform-independent) More...
 
void xsens::getDateAsString (uint8_t *dest, tm const *date=0)
 Retrieves the date as string 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...
 
void xsens::getTimeAsString (uint8_t *dest, tm const *date=0)
 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...
 
void xsens::msleep (uint32_t ms)
 Sleep for ms milliseconds. More...
 
TimeStamp xsens::timeStampNow ()
 
void xsens::initializeTime ()
 Stabilize the clock. More...