summaryrefslogtreecommitdiff
path: root/tests/clar_libgit2_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/clar_libgit2_timer.c')
-rw-r--r--tests/clar_libgit2_timer.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/clar_libgit2_timer.c b/tests/clar_libgit2_timer.c
deleted file mode 100644
index 737506da2..000000000
--- a/tests/clar_libgit2_timer.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "clar_libgit2.h"
-#include "clar_libgit2_timer.h"
-#include "buffer.h"
-
-void cl_perf_timer__init(cl_perf_timer *t)
-{
- memset(t, 0, sizeof(cl_perf_timer));
-}
-
-void cl_perf_timer__start(cl_perf_timer *t)
-{
- t->time_started = git__timer();
-}
-
-void cl_perf_timer__stop(cl_perf_timer *t)
-{
- double time_now = git__timer();
-
- t->last = time_now - t->time_started;
- t->sum += t->last;
-}
-
-double cl_perf_timer__last(const cl_perf_timer *t)
-{
- return t->last;
-}
-
-double cl_perf_timer__sum(const cl_perf_timer *t)
-{
- return t->sum;
-}