0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 7.4.2171

Problem:    MS-Windows build fails.
Solution:   Add QueryPerformanceCounter().
This commit is contained in:
Bram Moolenaar
2016-08-06 22:27:28 +02:00
parent 8e97bd74b5
commit 00ff380295
2 changed files with 6 additions and 0 deletions

View File

@@ -1259,6 +1259,9 @@ add_timer_info(typval_T *rettv, timer_T *timer)
dictitem_T *di; dictitem_T *di;
long remaining; long remaining;
proftime_T now; proftime_T now;
# ifdef WIN3264
LARGE_INTEGER fr;
#endif
if (dict == NULL) if (dict == NULL)
return; return;
@@ -1269,6 +1272,7 @@ add_timer_info(typval_T *rettv, timer_T *timer)
profile_start(&now); profile_start(&now);
# ifdef WIN3264 # ifdef WIN3264
QueryPerformanceFrequency(&fr);
remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart) remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
/ (double)fr.QuadPart) * 1000); / (double)fr.QuadPart) * 1000);
# else # else

View File

@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2171,
/**/ /**/
2170, 2170,
/**/ /**/