Introduce iced_sentinel and iced_debug crates
This commit is contained in:
parent
58a7007ac1
commit
dd36893f7a
26 changed files with 543 additions and 567 deletions
25
sentinel/src/timing.rs
Normal file
25
sentinel/src/timing.rs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
use crate::core::time::Duration;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(
|
||||
Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize,
|
||||
)]
|
||||
pub struct Timing {
|
||||
pub stage: Stage,
|
||||
pub duration: Duration,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize,
|
||||
)]
|
||||
pub enum Stage {
|
||||
Boot,
|
||||
Update,
|
||||
View,
|
||||
Layout,
|
||||
Interact,
|
||||
Draw,
|
||||
Render,
|
||||
Custom(String),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue