0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -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;
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