summaryrefslogtreecommitdiff
path: root/src/time.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-10-31 10:59:52 -0400
committerMica White <botahamec@outlook.com>2026-10-31 10:59:52 -0400
commitfde01cceb898b944b646a8fed1ce81cb14e523ef (patch)
treed1d5c97350fbbba2cc522c1f539c320ad4c2d1fc /src/time.rs
parent0c128e472b1b49e32c313874eaeccc8c5f1b1202 (diff)
Testing and optimization
Diffstat (limited to 'src/time.rs')
-rw-r--r--src/time.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time.rs b/src/time.rs
index 5978b57..d6f9e89 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -19,6 +19,7 @@ impl TimeContext {
}
pub fn next_frame(&mut self) {
+ #[cfg(feature = "puffin")]
puffin::profile_scope!("update time");
self.last_frame = self.current_frame;
self.current_frame = Instant::now();