mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
Implement TimeUnit functions via uom
This commit is contained in:
1 parent
71365c227e
commit
418e43a652
8 files changed
+20
-25
No files matched your search
+2
-2
@@ -4,7 +4,7 @@ use serde_json::to_vec_pretty;
|
||||
use super::Exporter;
|
||||
use crate::benchmark::benchmark_result::BenchmarkResult;
|
||||
use crate::options::SortOrder;
|
||||
use crate::quantity::TimeUnit;
|
||||
use crate::util::units::TimeUnit;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
@@ -20,7 +20,7 @@ impl Exporter for JsonExporter {
|
||||
fn serialize(
|
||||
&self,
|
||||
results: &[BenchmarkResult],
|
||||
_unit: Option<TimeUnit>,
|
||||
_time_unit: Option<TimeUnit>,
|
||||
_sort_order: SortOrder,
|
||||
_reference_index: Option<usize>,
|
||||
) -> Result<Vec<u8>> {
|
||||
|
||||
Reference in new issue
Block a user