From 623ea8ee8dbc1fc6385c88edca01aa32d5005d31 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Thu, 9 Sep 2021 12:56:25 +0200 Subject: [PATCH] Add parsed values to TimerData for evaluation --- pylikwid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pylikwid.c b/pylikwid.c index bfba552..61fdf6f 100644 --- a/pylikwid.c +++ b/pylikwid.c @@ -854,6 +854,8 @@ likwid_getClockCycles(PyObject *self, PyObject *args) timer_init(); timer_initialized = 1; } + timer.start.int64 = start; + timer.stop.int64 = stop; return Py_BuildValue("K", timer_printCycles(&timer)); } @@ -871,6 +873,8 @@ likwid_getClock(PyObject *self, PyObject *args) timer_init(); timer_initialized = 1; } + timer.start.int64 = start; + timer.stop.int64 = stop; return Py_BuildValue("d", timer_print(&timer)); }