xsens_imu
Classes | Namespaces | Macros | Typedefs | Functions
xsens_time.h File Reference
#include <time.h>
#include "pstdint.h"

Go to the source code of this file.

Classes

class  xsens::TimeSync
 Class for synchronizing two clocks. More...
 
class  xsens::MillisecondTimer
 

Namespaces

 xsens
 The namespace of all Xsens software since 2006.
 

Macros

#define XSENS_SEC_PER_DAY   (60*60*24)
 The number of seconds in a normal day. More...
 
#define XSENS_MS_PER_DAY   (XSENS_SEC_PER_DAY*1000)
 The number of milliseconds in a normal day. More...
 
#define XSENS_TIMESTAMP_MAX   (0x7FFFFFFFFFFFFFFFLL)
 The number of milliseconds in a normal day. More...
 

Typedefs

typedef int64_t xsens::TimeStamp
 A real-time timestamp (ms) More...
 

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...
 

Macro Definition Documentation

#define XSENS_MS_PER_DAY   (XSENS_SEC_PER_DAY*1000)

The number of milliseconds in a normal day.

#define XSENS_SEC_PER_DAY   (60*60*24)

The number of seconds in a normal day.

#define XSENS_TIMESTAMP_MAX   (0x7FFFFFFFFFFFFFFFLL)

The number of milliseconds in a normal day.