diff options
| author | Jeff Hostetler <jeffhost@microsoft.com> | 2015-03-03 09:57:50 -0500 |
|---|---|---|
| committer | Jeff Hostetler <jeffhost@microsoft.com> | 2015-03-03 09:57:50 -0500 |
| commit | e5cf1c704c6c06fb2f0c66a5b8e477af4e5eb0f4 (patch) | |
| tree | 323d8283b5602a97dadc35d8352c701d40bdc43c /tests/clar_libgit2_timer.h | |
| parent | 9a859ef55a3de35d7e35dbaf33bd562aeb1cf081 (diff) | |
| download | libgit2-e5cf1c704c6c06fb2f0c66a5b8e477af4e5eb0f4.tar.gz | |
Converted cl_perf_timer to use git__timer internally.
Diffstat (limited to 'tests/clar_libgit2_timer.h')
| -rw-r--r-- | tests/clar_libgit2_timer.h | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/tests/clar_libgit2_timer.h b/tests/clar_libgit2_timer.h index b646c7b63..0d150e018 100644 --- a/tests/clar_libgit2_timer.h +++ b/tests/clar_libgit2_timer.h @@ -1,33 +1,20 @@ #ifndef __CLAR_LIBGIT2_TIMER__ #define __CLAR_LIBGIT2_TIMER__ -#if defined(GIT_WIN32) - struct cl_perf_timer { /* cummulative running time across all start..stop intervals */ - LARGE_INTEGER sum; - /* value of last start..stop interval */ - LARGE_INTEGER last; - /* clock value at start */ - LARGE_INTEGER time_started; -}; - -#define CL_PERF_TIMER_INIT {0} + double sum; -#else + /* value of last start..stop interval */ + double last; -struct cl_perf_timer -{ - uint32_t sum; - uint32_t last; - uint32_t time_started; + /* clock value at start */ + double time_started; }; #define CL_PERF_TIMER_INIT {0} -#endif - typedef struct cl_perf_timer cl_perf_timer; void cl_perf_timer__init(cl_perf_timer *t); |
