From ac769ea93007aa188e4307b2a41646bf4db8f8cc Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Sat, 16 May 2026 21:34:13 +0200 Subject: [PATCH] jfjoch_process: Display metrics in millisecond and cut one digit of precision - down to 10 us --- tools/jfjoch_process.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/jfjoch_process.cpp b/tools/jfjoch_process.cpp index c018a324..6f45e79b 100644 --- a/tools/jfjoch_process.cpp +++ b/tools/jfjoch_process.cpp @@ -731,18 +731,18 @@ int main(int argc, char **argv) { auto image_mean_time = plots.GetMeanProcessingTime(); logger.Info( - "Per-image time: (mean; microseconds): decompress {:.0f} preprocess {:.0f} azint {:.0f} spot finding {:.0f} indexing {:.0f} refinement {:.0f} indexing analysis {:.0f} prediction {:.0f} integration {:.0f} scaling {:.0f} total {:.0f}", - image_mean_time.compression * 1e6, - image_mean_time.preprocessing * 1e6, - image_mean_time.azint * 1e6, - image_mean_time.spot_finding * 1e6, - image_mean_time.indexing * 1e6, - image_mean_time.refinement * 1e6, - image_mean_time.indexing_analysis * 1e6, - image_mean_time.bragg_prediction * 1e6, - image_mean_time.integration * 1e6, - image_mean_time.image_scale * 1e6, - image_mean_time.processing * 1e6); + "Per-image time: (mean; milliseconds): decompress {:.2f} preprocess {:.2f} azint {:.2f} spot finding {:.2f} indexing {:.2f} refinement {:.2f} indexing analysis {:.2f} prediction {:.2f} integration {:.2f} scaling {:.2f} total {:.2f}", + image_mean_time.compression * 1e3, + image_mean_time.preprocessing * 1e3, + image_mean_time.azint * 1e3, + image_mean_time.spot_finding * 1e3, + image_mean_time.indexing * 1e3, + image_mean_time.refinement * 1e3, + image_mean_time.indexing_analysis * 1e3, + image_mean_time.bragg_prediction * 1e3, + image_mean_time.integration * 1e3, + image_mean_time.image_scale * 1e3, + image_mean_time.processing * 1e3); if (rotation_indexer_ret.has_value()) { auto vec0 = rotation_indexer_ret->lattice.Vec0();