rawdio 0.14.0

An Audio Engine, inspired by the Web Audio API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub struct ScopedTimeMeasure {
    start: std::time::Instant,
}

impl ScopedTimeMeasure {
    pub fn _new() -> Self {
        Self {
            start: std::time::Instant::now(),
        }
    }
}

impl Drop for ScopedTimeMeasure {
    fn drop(&mut self) {
        println!("Duration: {}", self.start.elapsed().as_micros());
    }
}