osi3::Timestamp Struct Reference

A timestamp. More...

Collaboration diagram for osi3::Timestamp:

Public Attributes

optional int64 seconds = 1
 The number of seconds since the start of e.g. More...
 
optional uint32 nanos = 2
 The number of nanoseconds since the start of the last second. More...
 

Detailed Description

A timestamp.

Names and types of fields are chosen in accordance to google/protobuf/timestamp.proto to allow a possible switch in the future. There is no definition of the zero point in time neither it is the Unix epoch. A simulation may start at the zero point in time but it is not mandatory.

Member Data Documentation

◆ seconds

optional int64 osi3::Timestamp::seconds = 1

The number of seconds since the start of e.g.

the simulation / system / vehicle.

Unit: s

Rules
is_greater_than_or_equal_to: 0

◆ nanos

optional uint32 osi3::Timestamp::nanos = 2

The number of nanoseconds since the start of the last second.

Range: [0, 999.999.999]

Unit: ns

Rules
is_greater_than_or_equal_to: 0
is_less_than_or_equal_to: 999999999

  • osi_common.proto