#include <ieee1588.hpp>
Provides a Timestamp interface
Creates a Timestamp instance.
- Parameters
-
ns | 32 bit nano-seconds value |
s_l | 32 bit seconds field LSB |
s_m | 32 bit seconds field MSB |
ver | 8 bit version field |
Implements the operator '+' overloading method.
- Parameters
-
o | Constant reference to the timestamp to be added |
- Returns
- Object's timestamp + o.
Implements the operator '-' overloading method.
- Parameters
-
o | Constant reference to the timestamp to be subtracted |
- Returns
- Object's timestamp - o.
void Timestamp::set64 |
( |
uint64_t |
value | ) |
|
|
inline |
Sets a 64bit value to the object's timestamp.
- Parameters
-
- Returns
- void
char* Timestamp::toString |
( |
| ) |
|
|
inline |
Copies the timestamp to the internal string in the following format: seconds_ms seconds_ls nanoseconds.
- Returns
- Formated string (as a char *)
The documentation for this class was generated from the following file: