mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Add Context::time (#8017)
This commit is contained in:
@@ -1545,6 +1545,11 @@ impl Context {
|
|||||||
crate::debug_text::print(self, text);
|
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?
|
/// What operating system are we running on?
|
||||||
///
|
///
|
||||||
/// When compiling natively, this is
|
/// When compiling natively, this is
|
||||||
|
|||||||
Reference in New Issue
Block a user