Skip to content
Welcome to the new CppUtils documentation!

Execution measurement result of a benchmarked test block.

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).

Returns: Formatted duration string.