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

Refactored clock and filter interfaces. #254

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Refactored clock and filter interfaces. #254

merged 1 commit into from
Sep 7, 2023

Conversation

davidv1992
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage: 10.00% and project coverage change: -0.20% ⚠️

Comparison is base (6c308ee) 65.41% compared to head (550d040) 65.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #254      +/-   ##
==========================================
- Coverage   65.41%   65.22%   -0.20%     
==========================================
  Files          48       48              
  Lines        5257     5271      +14     
==========================================
- Hits         3439     3438       -1     
- Misses       1818     1833      +15     
Files Changed Coverage Δ
statime-linux/src/clock/mod.rs 0.00% <0.00%> (ø)
statime/src/filters/basic.rs 0.00% <0.00%> (ø)
statime/src/filters/mod.rs 100.00% <ø> (ø)
statime/src/port/mod.rs 3.41% <0.00%> (-0.03%) ⬇️
statime/src/port/state/mod.rs 0.00% <0.00%> (ø)
statime/src/time/duration.rs 66.19% <0.00%> (-3.44%) ⬇️
statime/src/port/state/slave.rs 92.12% <50.00%> (-0.01%) ⬇️
statime/src/port/measurement.rs 100.00% <100.00%> (ø)

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

Comment on lines +87 to +90
/// Get the total amount of seconds
pub fn seconds(&self) -> f64 {
self.inner.az::<f64>() / 1e9
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given that we use just the one cast (right now) we can possibly inline this at some point. Not a priority though

@folkertdev folkertdev merged commit e138f87 into main Sep 7, 2023
@folkertdev folkertdev deleted the clock-refactor branch September 7, 2023 14:31
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.

2 participants