mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
change diagnostics formatting
This commit is contained in:
parent
78de2fe2a1
commit
38a808db84
1 changed files with 4 additions and 2 deletions
|
@ -66,10 +66,12 @@ pub fn print_diagnostics_system(wait: Duration) -> Box<dyn Schedulable> {
|
|||
elasped = 0.0;
|
||||
for diagnostic in diagnostics.iter() {
|
||||
if let Some(value) = diagnostic.value() {
|
||||
println!("{}: {:.6}", diagnostic.name, value);
|
||||
print!("{:<10}: {:<9.6}", diagnostic.name, value);
|
||||
if let Some(average) = diagnostic.average() {
|
||||
println!(" average: {:.6}", average);
|
||||
print!(" (avg {:.6})", average);
|
||||
}
|
||||
|
||||
println!("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue