mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
make TimeUnit a trait
This commit is contained in:
parent
a31d6389be
commit
4df15d6bac
7 changed files with 238 additions and 220 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue