Skip to content

Commit

Permalink
Revert "Add get_f64"
Browse files Browse the repository at this point in the history
This reverts commit aec0ed6.
  • Loading branch information
AlyoshaVasilieva authored and mciantyre committed Nov 17, 2020
1 parent 597a113 commit 0bea36d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions imxrt-hal/src/srtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,6 @@ impl SRTC {
get(&self.reg)
}

/// Gets the current time as a floating point amount of seconds.
pub fn get_f64(&self) -> f64 {
let (sec, ticks) = self.get_with_ticks();
(sec as f64) + (ticks as f64 / 32768.0)
}

/// Set the current time as a count of seconds since some point in the past and the sub-second
/// time as 32768Hz ticks.
pub fn set(&mut self, time: u32, ticks: u16) {
Expand Down

0 comments on commit 0bea36d

Please sign in to comment.