mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Use wait4 for per-command resource usage on Unix
This commit is contained in:
1 parent
ecf8a24b1e
commit
c72a4c764a
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;
|
||||
pub use uom::si::time::{microsecond, nanosecond, second};
|
||||
|
||||
@@ -53,7 +55,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