Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

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

Retourne : Formatted duration string.