summaryrefslogtreecommitdiff
path: root/tests/clar_libgit2_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/clar_libgit2_timer.h')
-rw-r--r--tests/clar_libgit2_timer.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/clar_libgit2_timer.h b/tests/clar_libgit2_timer.h
deleted file mode 100644
index 0d150e018..000000000
--- a/tests/clar_libgit2_timer.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef __CLAR_LIBGIT2_TIMER__
-#define __CLAR_LIBGIT2_TIMER__
-
-struct cl_perf_timer
-{
- /* cummulative running time across all start..stop intervals */
- double sum;
-
- /* value of last start..stop interval */
- double last;
-
- /* clock value at start */
- double time_started;
-};
-
-#define CL_PERF_TIMER_INIT {0}
-
-typedef struct cl_perf_timer cl_perf_timer;
-
-void cl_perf_timer__init(cl_perf_timer *t);
-void cl_perf_timer__start(cl_perf_timer *t);
-void cl_perf_timer__stop(cl_perf_timer *t);
-
-/**
- * return value of last start..stop interval in seconds.
- */
-double cl_perf_timer__last(const cl_perf_timer *t);
-
-/**
- * return cummulative running time across all start..stop
- * intervals in seconds.
- */
-double cl_perf_timer__sum(const cl_perf_timer *t);
-
-#endif /* __CLAR_LIBGIT2_TIMER__ */