mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add Context::time (#8017)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user