We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f8e3e commit 5082cd5Copy full SHA for 5082cd5
lua/lazy/stats.lua
@@ -50,7 +50,7 @@ function M.cputime()
50
local pnano = assert(ffi.new("nanotime[?]", 1))
51
local CLOCK_PROCESS_CPUTIME_ID = jit.os == "OSX" and 12 or 2
52
ffi.C.clock_gettime(CLOCK_PROCESS_CPUTIME_ID, pnano)
53
- 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
54
end
55
56
local function fallback()
0 commit comments