mirror of https://github.com/folke/lazy.nvim.git
fix(stats): fixed cputime on linux
This commit is contained in:
parent
277a2ab10b
commit
06db1ec3c6
|
@ -44,7 +44,7 @@ function M.cputime()
|
||||||
} nanotime;
|
} nanotime;
|
||||||
int clock_gettime(clockid_t clk_id, struct timespec *tp);
|
int clock_gettime(clockid_t clk_id, struct timespec *tp);
|
||||||
]])
|
]])
|
||||||
if M.C.clock_gettime then
|
if ffi.C.clock_gettime then
|
||||||
M.C = ffi.C
|
M.C = ffi.C
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue