forgot to add small updates to timing.lua
This commit is contained in:
1 parent
0cf0e99d60
commit
581fc8825a
1 file changed
+3
-2
+3
-2
@@ -20,9 +20,10 @@ timing.display = function(n)
|
|||||||
local time = timing[n]
|
local time = timing[n]
|
||||||
local previous = timing[n - 1]
|
local previous = timing[n - 1]
|
||||||
|
|
||||||
local delta = human_readable_time(time.time - previous.time)
|
local delta = time.time - previous.time
|
||||||
|
if delta < 1 then return end -- don't print insignificant time use
|
||||||
|
|
||||||
print(delta, previous.label)
|
print(human_readable_time(delta), previous.label)
|
||||||
end
|
end
|
||||||
|
|
||||||
if n then
|
if n then
|
||||||
|
|||||||
Reference in new issue
Block a user