Skip to main content

ferroui_base/rendering/
layout_pass_timing.rs

1use std::time::Duration;
2
3/// Represents a single layout pass timing.
4#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
5pub struct LayoutPassTiming {
6    /// The number of the layout pass.
7    pub pass_counter: i32,
8    /// The elapsed time during the layout pass.
9    pub elapsed: Duration,
10}
11
12impl LayoutPassTiming {
13    pub const fn new(pass_counter: i32, elapsed: Duration) -> Self {
14        Self { pass_counter, elapsed }
15    }
16}