Method
info
(&self, ui: &Ui, system: &System)
Source from the content-addressed store, hash-verified
| 44 | } |
| 45 | |
| 46 | pub fn info(&self, ui: &Ui, system: &System) { |
| 47 | let cores = system.physical_core_count().unwrap(); |
| 48 | let processor = &system.processors()[0]; |
| 49 | |
| 50 | let group = ui.begin_group(); |
| 51 | ui.text(format!( |
| 52 | "CPU: {}MHz, {} cores", |
| 53 | processor.frequency(), |
| 54 | cores |
| 55 | )); |
| 56 | group.end(); |
| 57 | } |
| 58 | |
| 59 | /// Resets and reallocates the entire scene. |
| 60 | pub fn reset_scene(&mut self, scene: &Scene) { |
Tested by
no test coverage detected