#include <MicrosecondTimestamp.h>
Inheritance diagram for AnnotatorComm::MicrosecondTimestamp:
Public Member Functions | |
MicrosecondTimestamp (int year, int day, int second, long microsecond) | |
virtual int | getYear () const |
virtual int | getDayOfYear () const |
virtual int | getSecondOfDay () const |
virtual long | getMicrosecond () const |
Static Public Member Functions | |
static MicrosecondTimestamp | makeTimestamp (vector< uint8_t > timestamp, int offset) |
Protected Attributes | |
int | year |
int | day |
int | second |
long | microsecond |
MicrosecondTimestamp
is a timestamp accurate to within a microsecond. It is the standard time keeping Timestamp
within libAnnotatorComm.
Definition at line 29 of file MicrosecondTimestamp.h.
AnnotatorComm::MicrosecondTimestamp::MicrosecondTimestamp | ( | int | year, | |
int | day, | |||
int | second, | |||
long | microsecond | |||
) |
Construct a MicrosecondTimestamp</code.
year timestamp year day timestamp day of year second timestamp second of day microsecond timestamp microsecond of second
virtual int AnnotatorComm::MicrosecondTimestamp::getDayOfYear | ( | ) | const [virtual] |
virtual long AnnotatorComm::MicrosecondTimestamp::getMicrosecond | ( | ) | const [virtual] |
virtual int AnnotatorComm::MicrosecondTimestamp::getSecondOfDay | ( | ) | const [virtual] |
virtual int AnnotatorComm::MicrosecondTimestamp::getYear | ( | ) | const [virtual] |
static MicrosecondTimestamp AnnotatorComm::MicrosecondTimestamp::makeTimestamp | ( | vector< uint8_t > | timestamp, | |
int | offset | |||
) | [static] |
Make a MicrosecondTimestamp
from a set of bytes.
typedef struct { uint16_t year; uint16_t dayofyear; uint32_t secondofday; } realtimeclock_t; uint32_t microsecond;
timestamp | raw timestamp bytes | |
offset | offset into raw bytes |
int AnnotatorComm::MicrosecondTimestamp::day [protected] |
Timestamp day of year
Definition at line 99 of file MicrosecondTimestamp.h.
long AnnotatorComm::MicrosecondTimestamp::microsecond [protected] |
Timestamp microsecond of second
Definition at line 109 of file MicrosecondTimestamp.h.
int AnnotatorComm::MicrosecondTimestamp::second [protected] |
Timestamp second of day
Definition at line 104 of file MicrosecondTimestamp.h.
int AnnotatorComm::MicrosecondTimestamp::year [protected] |
Timestamp year
Definition at line 94 of file MicrosecondTimestamp.h.