Permalink
Browse files

patch 7.4.2171

Problem:    MS-Windows build fails.
Solution:   Add QueryPerformanceCounter().
  • Loading branch information...
1 parent 8e97bd7 commit 00ff380295338eedb6138ce87590cc6bed102e9d @brammool brammool committed Aug 6, 2016
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/ex_cmds2.c
  2. +2 −0 src/version.c
View
@@ -1259,6 +1259,9 @@ add_timer_info(typval_T *rettv, timer_T *timer)
dictitem_T *di;
long remaining;
proftime_T now;
+# ifdef WIN3264
+ LARGE_INTEGER fr;
+#endif
if (dict == NULL)
return;
@@ -1269,6 +1272,7 @@ add_timer_info(typval_T *rettv, timer_T *timer)
profile_start(&now);
# ifdef WIN3264
+ QueryPerformanceFrequency(&fr);
remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
/ (double)fr.QuadPart) * 1000);
# else
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2171,
+/**/
2170,
/**/
2169,

0 comments on commit 00ff380

Please sign in to comment.