Move ClockMilliseconds to events, so fewer files are loaded some times

This commit is contained in:
w0rp
2018-06-19 20:53:49 +01:00
parent fd261d7a17
commit 82ea36576c
5 changed files with 20 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ let s:timestamp_map = {}
" If the function throws an exception, then the function will not be called
" for a while, and 0 will be returned instead.
function! ale#CallWithCooldown(timestamp_key, func, arglist) abort
let l:now = ale#util#ClockMilliseconds()
let l:now = ale#events#ClockMilliseconds()
if l:now < get(s:timestamp_map, a:timestamp_key, -1)
return 0