Skip to content

create CFE_TIME_PrintFmt(); #2316

@CDKnightNASA

Description

@CDKnightNASA

Is your feature request related to a problem? Please describe.
Currently the CFE_TIME_Print() function only produces YYYY-ddd HH:MM:SS.xxxx formatted timestamps. CFE_EVS now uses that for stdout messages, which adds quite a lot of text.

Describe the solution you'd like
I suggest the addition of a new CFE_TIME_PrintFmt() function, a-la strftime (preferably using strftime, if that is available on all our target platforms) so that applications can produce a time-only format, for example.

Additionally, I suggest a "T+" format for such things as EVS stdout output where the first report is the full timestamp for "T0" and all subsequent messages are the number of seconds (SS.xxxx) after the T0 epoch for even more storage efficiency and readability.

Once this capability is created, EVS should be modified to allow configuring the format.

Describe alternatives you've considered
Another option is to use something other than CFE_TIME_Print() in EVS_SendViaPorts().

Additional context
See the related PR #2295

Requester Info
[email protected]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions