Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions and strong types for Rodos and real time #319

Merged
merged 29 commits into from
Aug 28, 2024

Conversation

Tomoya-Hagen
Copy link
Contributor

@Tomoya-Hagen Tomoya-Hagen commented Aug 11, 2024

Fixes #320
Fixes #221

Also adds conversion functions between Rodos and real time.

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 14 lines in your changes missing coverage. Please review.

Project coverage is 94.06%. Comparing base (410cca0) to head (3c92fdf).

Files Patch % Lines
Sts1CobcSw/Utility/Time.ipp 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #319      +/-   ##
==========================================
- Coverage   96.11%   94.06%   -2.05%     
==========================================
  Files          21       22       +1     
  Lines         643      657      +14     
==========================================
  Hits          618      618              
- Misses         25       39      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PatrickKa PatrickKa changed the title Introduce new strong types for time Add strong types for time Aug 12, 2024
@PatrickKa PatrickKa marked this pull request as ready for review August 23, 2024 13:34
Also fix publishing the delay in seconds but using it like a normal
Rodos duration, i.e., in nanoseconds.
@PatrickKa PatrickKa force-pushed the strong-types-for-time-units branch from 7d65f6b to 0fd29a2 Compare August 23, 2024 16:48
It must be default constructible for usage in `RODOS::Commbuffer` and
`strong::difference` perfectly models the properties of a duration. It
can be added and subtracted, scaled and divided with the underlying
type, and dividing two `Duration`s yields the unterlying type.
@PatrickKa PatrickKa changed the title Add strong types for time Add functions and strong types for Rodos and real time Aug 24, 2024
@PatrickKa PatrickKa force-pushed the strong-types-for-time-units branch from 2ad7048 to 7847bef Compare August 28, 2024 16:13
I have no idea why TopicsAndSubscribers.cpp was specified as an
additional source file, but it caused errors so I removed it.
@PatrickKa PatrickKa force-pushed the strong-types-for-time-units branch from 7847bef to 3c92fdf Compare August 28, 2024 16:14
@PatrickKa PatrickKa merged commit 5f4baab into master Aug 28, 2024
6 checks passed
@PatrickKa PatrickKa deleted the strong-types-for-time-units branch August 28, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add strong types for time Add functions to get current Rodos and real time
3 participants