bach 0.1.2

Discrete-event simulation environment for async workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Clone, Copy, Debug, Default)]
#[non_exhaustive]
pub struct Macrostep {
    pub tasks: usize,
    pub ticks: u64,
    pub primary_count: u64,
    pub stalled: bool,
}

impl Macrostep {
    pub fn metrics(&self) {
        measure!("tasks", self.tasks as u32);
        measure!(
            "advance",
            crate::time::resolution::ticks_to_duration(self.ticks)
        );
    }
}