We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d4d4a5 commit 5adf29dCopy full SHA for 5adf29d
1 file changed
tools/lambda_rs_demo/src/main.rs
@@ -92,11 +92,12 @@ impl Component<Events> for DemoComponent {
92
}
93
94
fn on_update(self: &mut DemoComponent, last_frame: &std::time::Duration) {
95
- println!(
96
- "This component was last updated: {} nanoseconds/{} milliseconds ago",
97
- last_frame.as_nanos(),
98
- last_frame.as_millis()
99
- );
+ match last_frame.as_millis() > 20 {
+ true => {
+ println!("[WARN] Last frame took {}ms", last_frame.as_millis());
+ }
+ false => {}
100
101
102
103
0 commit comments