mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-18 08:12:41 -06:00
refactor: use stack allocated circular buffer, use RwLock+Mutex for concurrent system timing access
This commit is contained in:
@@ -95,10 +95,6 @@ pub fn format_timing_display(timing_data: Vec<(String, Duration, Duration)>) ->
|
||||
std_unit,
|
||||
} in entries.iter()
|
||||
{
|
||||
// Add exactly 4 spaces of padding before each number
|
||||
let avg_padding = " ".repeat(4);
|
||||
let std_padding = " ".repeat(4);
|
||||
|
||||
output_lines.push(format!(
|
||||
"{name:max_name_width$} : {avg_int:max_avg_int_width$}.{avg_decimal:<max_avg_decimal_width$}{avg_unit} ± {std_int:max_std_int_width$}.{std_decimal:<max_std_decimal_width$}{std_unit}"
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user