From 359fd431d9709237e654b9dbb72450a4f1c18d07 Mon Sep 17 00:00:00 2001
From: Pradipta Samanta <samanta@dkrz.de>
Date: Fri, 3 Jan 2025 09:35:30 +0100
Subject: [PATCH] change the place of start the timer

---
 src/support/mo_math_utilities.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/support/mo_math_utilities.cpp b/src/support/mo_math_utilities.cpp
index c2b46dc..45430b0 100644
--- a/src/support/mo_math_utilities.cpp
+++ b/src/support/mo_math_utilities.cpp
@@ -8,6 +8,9 @@ void tdma_solver_vec(double *a, double *b, double *c, double *d,
                      int slev, int elev, int startidx, int endidx,
                      double* varout, int opt_acc_queue = -1) {
 
+    // Start timing
+    auto start_time = std::chrono::high_resolution_clock::now();
+
     int acc_queue = (opt_acc_queue == -1) ? 1 : opt_acc_queue; // Use 1 as the default if opt_acc_queue is not provided
 
     // Determine array sizes based on startidx and endidx
-- 
GitLab