clock.instant -> clock.current

This commit is contained in:
🪞👃🪞 2024-11-02 00:37:01 +02:00
parent e7dce0f84b
commit a31d6389be
5 changed files with 10 additions and 10 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.instant.pulse().get() - started.pulse().get())
Some(self.clock.current.pulse().get() - started.pulse().get())
} else {
None
}