import CppUtils.UnitTest.Benchmark;
import CppUtils;
Execution measurement result of a benchmarked test block.
Execution
std::string name;
Name or label identifying the benchmarked operation.
std::chrono::nanoseconds duration {0};
Measured execution duration in nanoseconds.
[[nodiscard]] auto BenchmarkResult::durationString() const -> std::string;
Formats the measured duration into a human-readable string (ns, us, ms, s).
Retourne : Formatted duration string.