From fa6c70a44fc56cc50370e57c460dd61e8f127b51 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 23 May 2025 16:28:17 +0200 Subject: SpMV: Add AspectC++ support --- SpMV/support/timer.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 SpMV/support/timer.h (limited to 'SpMV/support/timer.h') diff --git a/SpMV/support/timer.h b/SpMV/support/timer.h deleted file mode 100644 index 7367b11..0000000 --- a/SpMV/support/timer.h +++ /dev/null @@ -1,30 +0,0 @@ - -#ifndef _TIMER_H_ -#define _TIMER_H_ - -#include -#include - -typedef struct Timer { - struct timeval startTime; - struct timeval endTime; -} Timer; - -static void startTimer(Timer *timer) -{ - gettimeofday(&(timer->startTime), NULL); -} - -static void stopTimer(Timer *timer) -{ - gettimeofday(&(timer->endTime), NULL); -} - -static double getElapsedTime(Timer timer) -{ - return ((double)((timer.endTime.tv_sec - timer.startTime.tv_sec) - + (timer.endTime.tv_usec - - timer.startTime.tv_usec) / 1.0e6)); -} - -#endif -- cgit v1.2.3