diff options
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -2625,17 +2625,15 @@ typedef enum { # define ELAPSED_TIMEVAL # define ELAPSED_INIT(v) gettimeofday(&v, NULL) # define ELAPSED_FUNC(v) elapsed(&v) -# define ELAPSED_TYPE struct timeval - long elapsed(struct timeval *start_tv); -#else -# if defined(WIN32) -# define ELAPSED_TICKCOUNT -# define ELAPSED_INIT(v) v = GetTickCount() -# define ELAPSED_FUNC(v) elapsed(v) -# define ELAPSED_TYPE DWORD -# ifndef PROTO - long elapsed(DWORD start_tick); -# endif +typedef struct timeval elapsed_T; +long elapsed(struct timeval *start_tv); +#elif defined(WIN32) +# define ELAPSED_TICKCOUNT +# define ELAPSED_INIT(v) v = GetTickCount() +# define ELAPSED_FUNC(v) elapsed(v) +typedef DWORD elapsed_T; +# ifndef PROTO +long elapsed(DWORD start_tick); # endif #endif |