mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 08:40:18 +00:00
Merge pull request #965 from sharkdp/codex/wait4-resource-usage
Use `wait4` for per-command resource usage on Unix
This commit is contained in:
3 files changed
+77
-101
No files matched your search
+3
-1
@@ -3,6 +3,8 @@ use std::marker::PhantomData;
|
||||
pub use uom::num_traits::Zero;
|
||||
pub use uom::si::f64::{Information, Ratio, Time};
|
||||
pub use uom::si::information::byte;
|
||||
#[cfg(any(not(windows), test))]
|
||||
pub use uom::si::information::kibibyte;
|
||||
pub use uom::si::ratio::ratio;
|
||||
#[cfg(any(not(windows), test))]
|
||||
pub use uom::si::time::microsecond;
|
||||
@@ -55,7 +57,7 @@ pub fn format_duration_value(duration: f64, unit: Option<TimeUnit>) -> (String,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
use uom::si::{information::kibibyte, time::millisecond};
|
||||
use uom::si::time::millisecond;
|
||||
|
||||
#[test]
|
||||
fn test_time() {
|
||||
|
||||
Reference in new issue
Block a user