Add Context::time (#8017)

This commit is contained in:
Emil Ernerfeldt
2026-03-25 10:11:21 +01:00
committed by GitHub
parent 2ccc8e8bab
commit 12b5045633
+5
View File
@@ -1545,6 +1545,11 @@ impl Context {
crate::debug_text::print(self, text);
}
/// Current time in seconds, relative to some unknown epoch.
pub fn time(&self) -> f64 {
self.input(|i| i.time)
}
/// What operating system are we running on?
///
/// When compiling natively, this is