Switch to unit-safe quantities

This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 15:58:56 +02:00
1 parent 914d5cbc59
commit f9aa299c0f
15 files changed
+399 -287

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ use std::os::fd::AsFd;
#[cfg(target_os = "windows")]
use windows_sys::Win32::System::Threading::CREATE_SUSPENDED;
use crate::benchmark::measurement::Measurement;
use crate::benchmark::quantity::{Byte, Second};
use wall_clock_timer::WallClockTimer;
use std::io::Read;
@@ -30,7 +30,7 @@ pub struct TimerResult {
pub time_wall_clock: Second,
pub time_user: Second,
pub time_system: Second,
pub memory_usage_byte: u64,
pub memory_usage_byte: Byte,
/// The exit status of the process
pub status: ExitStatus,
}