Skip to content

Timestamp Definition #433

Open
Open
@doganulus

Description

@doganulus

As a tool developer I find tedious to work with a timestamp definition having two separate fields (seconds, nanos) that complicates the timing arithmetic, abundant in real time systems.

In osi_common.proto file, it is noted that this is done for a future compliance with google/protobuf/timestamp.proto definition but I am not sure that it's now a valid concern. So what are the use cases requiring two separate time fields, especially in automotive simulation domain?

Ideally I'd prefer a single int64 field with an implicit microseconds** precision (the simplest) or a more general solution a la std::chrono::duration (with num and den fields).

** I say microseconds because AUTOSAR uses microseconds but I wonder if there exists a use case requiring nanosecond precision in automotive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionGeneral questions about the standard, work-flow and code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions