-
Notifications
You must be signed in to change notification settings - Fork 20
Timestamp
huggins edited this page Apr 10, 2025
·
2 revisions
Container for DIS PDU Timestamp information
struct FTimestamp| Type | Name | Description |
|---|---|---|
| int32 | Milliseconds | The milliseconds that have elapsed since the beginning of the current second |
| int32 | Minutes | The minutes that have elapsed since the beginning of the current hour |
| int32 | Seconds | The seconds that have elapsed since the beginning of the current minute |
| private float | timeConversion | The conversion value to use when converting the received DIS PDU timestamp value to/from seconds |
| ETimestampFormat | TimestampFormat | The format that this timestamp is represented in |
| Name | Description |
|---|---|
| FTimestamp() | Default constructor |
| FTimestamp(unsigned int Timestamp) | Constructor that takes in an unsigned int |
| Return | Name | Description |
|---|---|---|
| unsigned int | ToOpenDIS() | Conversion to unsigned int |
int32 MillisecondsThe milliseconds that have elapsed since the beginning of the current second
Category: GRILL DIS|Structs
Range: [0, 999]
int32 MinutesThe minutes that have elapsed since the beginning of the current hour
Category: GRILL DIS|Structs
Range: [0, 59]
int32 SecondsThe seconds that have elapsed since the beginning of the current minute
Category: GRILL DIS|Structs
Range: [0, 59]
private float timeConversion = (3600.f / pow(2, 31))The conversion value to use when converting the received DIS PDU timestamp value to/from seconds
Category: GRILL DIS|Structs
ETimestampFormat TimestampFormatThe format that this timestamp is represented in
Category: GRILL DIS|Structs
FTimestamp()Default constructor
FTimestamp
(
unsigned int Timestamp
)Constructor that takes in the OpenDIS EntityID struct
| Parameter | Description |
|---|---|
| Timestamp | The unsigned int to convert to an FTimestamp struct. |
unsigned int ToOpenDIS() constConversion to an unsigned int.
| Returns |
|---|
| The unsigned int representation of this FTimestamp. |