make TimeUnit a trait

This commit is contained in:
🪞👃🪞 2024-11-02 01:03:23 +02:00
parent a31d6389be
commit 4df15d6bac
7 changed files with 238 additions and 220 deletions

View file

@ -418,7 +418,7 @@ impl PhrasePlayer {
}
pub fn pulses_since_start (&self) -> Option<f64> {
if let Some((started, Some(_))) = self.phrase.as_ref() {
Some(self.clock.current.pulse().get() - started.pulse().get())
Some(self.clock.current.pulse.get() - started.pulse.get())
} else {
None
}