mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Updates
This commit is contained in:
1 parent
55dfe6722c
commit
a027c1eb22
21 files changed
+346
-154
No files matched your search
+9
-4
@@ -397,10 +397,15 @@ impl Options {
|
||||
|
||||
match matches.get_one::<String>("metrics").unwrap().as_str() {
|
||||
"default" => {}
|
||||
"speed" => {
|
||||
options.metrics = [Metric::TimeWallClock, Metric::TimeUser, Metric::TimeSystem]
|
||||
.map(|metric| MetricSelection { metric, unit: None })
|
||||
.to_vec();
|
||||
"time" => {
|
||||
options.metrics = [
|
||||
Metric::TimeWallClock,
|
||||
Metric::TimeCpu,
|
||||
Metric::TimeUser,
|
||||
Metric::TimeSystem,
|
||||
]
|
||||
.map(|metric| MetricSelection { metric, unit: None })
|
||||
.to_vec();
|
||||
}
|
||||
"all" => {
|
||||
let shell = matches!(
|
||||
|
||||
Reference in new issue
Block a user