devalang 0.2.0

Write music with code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;
use std::thread;
use std::time::Duration;

#[test]
fn test_debug_timer() {
    let timer = DebugTimer::new("test");
    thread::sleep(Duration::from_millis(10));
    assert!(timer.elapsed_ms() >= 10.0);
}