summaryrefslogtreecommitdiff
path: root/ell_relax.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 /ell_relax.h
parent763dfb979c06707d334532cb31a776fb67564ce7 (diff)
Add a function to measure timings for benchmarking.
Diffstat (limited to 'ell_relax.h')
-rw-r--r--ell_relax.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ell_relax.h b/ell_relax.h
index 74355e6..0df42d5 100644
--- a/ell_relax.h
+++ b/ell_relax.h
@@ -222,6 +222,15 @@ typedef struct EllRelaxContext {
* Distance between neighbouring gridpoints along coord1.
*/
ptrdiff_t diff_coeffs_stride;
+
+ /* timings */
+ int64_t count_correct;
+ int64_t time_correct;
+
+ int64_t time_boundaries;
+ int64_t count_boundaries;
+ int64_t time_res_calc;
+ int64_t count_res;
} EllRelaxContext;
/**