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. --- ell_relax.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ell_relax.h') 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; /** -- cgit v1.2.3