mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(stats): corrected typo in cputime() for Linux
This commit is contained in:
parent
f8611632d0
commit
fb0979f0a7
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function M.cputime()
|
|||
local pnano = assert(ffi.new("nanotime[?]", 1))
|
||||
local CLOCK_PROCESS_CPUTIME_ID = jit.os == "OSX" and 12 or 2
|
||||
ffi.C.clock_gettime(CLOCK_PROCESS_CPUTIME_ID, pnano)
|
||||
return tonumber(pnano[0].tv_sec) / 1e6 + tonumber(pnano[0].tv_nsec) / 1e6
|
||||
return tonumber(pnano[0].tv_sec) * 1e3 + tonumber(pnano[0].tv_nsec) / 1e6
|
||||
end
|
||||
|
||||
local function fallback()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue