aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-09-26 10:31:19 +0200
committerAnton Khirnov <anton@khirnov.net>2018-09-26 10:31:19 +0200
commitfe9ca236396f16bc4d22521eee20e71ea5febac2 (patch)
tree2ac0edbcae869d0ffa8c7d481f065efbf652166b /mg2d.h
parent763dfb979c06707d334532cb31a776fb67564ce7 (diff)
Add a function to measure timings for benchmarking.
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h8
1 files changed, 8 insertions, 0 deletions
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 */