maycoon_core/app/
diagnostics.rs

1/// Contains diagnostics data for the application.
2#[derive(Debug, Copy, Clone, PartialEq, Eq)]
3pub struct Diagnostics {
4    /// The updates since the last second. Use `updates_per_sec` for the average updates per second.
5    pub updates: usize,
6    /// The average updates per second.
7    pub updates_per_sec: usize,
8    /// Whether this is the first run of the application.
9    pub first_run: bool,
10}
11
12impl Default for Diagnostics {
13    #[inline(always)]
14    fn default() -> Self {
15        Self {
16            updates: 0,
17            updates_per_sec: 0,
18            first_run: true,
19        }
20    }
21}