Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TimeStamp Class Reference

A simple TimeStamp abstraction. More...

#include <TimeStamp.hh>

Public Member Functions

int getMicroSeconds () const
 Returns the subsecond part of the TimeStamp in microseconds. More...
 
int getMilliSeconds () const
 Returns the 'subseconds' part of the TimeStamp in milliseconds, getMilliSeconds() == getMicroSeconds() / 1000. More...
 
int getSeconds () const
 Returns the 'seconds' part of the TimeStamp. More...
 
 TimeStamp ()
 Constructs a TimeStamp representing 'now'. More...
 
 TimeStamp (unsigned int seconds, unsigned int microSeconds=0)
 Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC). More...
 

Static Public Member Functions

static const TimeStampgetStartTime ()
 Returns a TimeStamp representing the time at which the application started. More...
 

Protected Attributes

int _microSeconds
 
int _seconds
 

Static Protected Attributes

static TimeStamp _startStamp
 

Detailed Description

A simple TimeStamp abstraction.

Definition at line 20 of file TimeStamp.hh.

Constructor & Destructor Documentation

TimeStamp::TimeStamp ( )

Constructs a TimeStamp representing 'now'.

TimeStamp::TimeStamp ( unsigned int  seconds,
unsigned int  microSeconds = 0 
)

Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).

Member Function Documentation

int TimeStamp::getMicroSeconds ( ) const
inline

Returns the subsecond part of the TimeStamp in microseconds.

The actual precision of this value depends on the platform and may be in the order of milliseconds rather than microseconds.

Definition at line 53 of file TimeStamp.hh.

int TimeStamp::getMilliSeconds ( ) const
inline

Returns the 'subseconds' part of the TimeStamp in milliseconds, getMilliSeconds() == getMicroSeconds() / 1000.

Definition at line 44 of file TimeStamp.hh.

int TimeStamp::getSeconds ( ) const
inline

Returns the 'seconds' part of the TimeStamp.

Definition at line 36 of file TimeStamp.hh.

static const TimeStamp& TimeStamp::getStartTime ( )
inlinestatic

Returns a TimeStamp representing the time at which the application started.

Definition at line 61 of file TimeStamp.hh.

Member Data Documentation

int TimeStamp::_microSeconds
protected

Definition at line 69 of file TimeStamp.hh.

int TimeStamp::_seconds
protected

Definition at line 68 of file TimeStamp.hh.

TimeStamp TimeStamp::_startStamp
staticprotected

Definition at line 63 of file TimeStamp.hh.


The documentation for this class was generated from the following file:


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:55