Skip to content

Timestamp

huggins edited this page Apr 10, 2025 · 2 revisions

Timestamp

Container for DIS PDU Timestamp information

struct FTimestamp

Back to Top


Members

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

Back to Top


Constructors

Name Description
FTimestamp() Default constructor
FTimestamp(unsigned int Timestamp) Constructor that takes in an unsigned int

Functions

Return Name Description
unsigned int ToOpenDIS() Conversion to unsigned int

Back to Top


Details

Milliseconds

int32 Milliseconds

The milliseconds that have elapsed since the beginning of the current second

Category: GRILL DIS|Structs

Range: [0, 999]

Back to Top


Minutes

int32 Minutes

The minutes that have elapsed since the beginning of the current hour

Category: GRILL DIS|Structs

Range: [0, 59]

Back to Top


Seconds

int32 Seconds

The seconds that have elapsed since the beginning of the current minute

Category: GRILL DIS|Structs

Range: [0, 59]

Back to Top


timeConversion

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

Back to Top


TimestampFormat

ETimestampFormat TimestampFormat

The format that this timestamp is represented in

Category: GRILL DIS|Structs

Back to Top


FTimestamp

FTimestamp()

Default constructor

Back to Top


FTimestamp

FTimestamp
(
	unsigned int Timestamp
)

Constructor that takes in the OpenDIS EntityID struct

Parameter Description
Timestamp The unsigned int to convert to an FTimestamp struct.

Back to Top


ToOpenDIS

unsigned int ToOpenDIS() const

Conversion to an unsigned int.

Returns
The unsigned int representation of this FTimestamp.

Back to Top


Clone this wiki locally