From fe9ca236396f16bc4d22521eee20e71ea5febac2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 26 Sep 2018 10:31:19 +0200 Subject: Add a function to measure timings for benchmarking. --- mg2d.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mg2d.h') diff --git a/mg2d.h b/mg2d.h index 9a0a5a5..a0c0c70 100644 --- a/mg2d.h +++ b/mg2d.h @@ -241,4 +241,12 @@ int mg2d_solve(MG2DContext *ctx); */ void mg2d_solver_free(MG2DContext **ctx); +/** + * Print the solver timing statistics using the logging callback. + * + * @param prefix the string prepended to each output line, may be NULL to mean + * none + */ +void mg2d_print_stats(MG2DContext *ctx, const char *prefix); + #endif /* MG2D_H */ -- cgit v1.2.3