diff options
Diffstat (limited to 'src/profiler.c')
-rw-r--r-- | src/profiler.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/profiler.c b/src/profiler.c index 9c9fa9dbc2..03348dff33 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -90,23 +90,21 @@ profile_msg(proftime_T *tm) return buf; } -# if defined(FEAT_FLOAT) || defined(PROTO) /* * Return a float that represents the time in "tm". */ float_T profile_float(proftime_T *tm) { -# ifdef MSWIN +# ifdef MSWIN LARGE_INTEGER fr; QueryPerformanceFrequency(&fr); return (float_T)tm->QuadPart / (float_T)fr.QuadPart; -# else +# else return (float_T)tm->tv_sec + (float_T)tm->tv_usec / 1000000.0; -# endif -} # endif +} /* * Put the time "msec" past now in "tm". @@ -173,7 +171,7 @@ profile_zero(proftime_T *tm) # endif // FEAT_PROFILE || FEAT_RELTIME -#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_FLOAT) && defined(FEAT_PROFILE) +#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_PROFILE) # if defined(HAVE_MATH_H) # include <math.h> # endif |