mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-19 00:30:45 +01:00
timing log
This commit is contained in:
parent
45d90a887b
commit
83a946410c
@ -406,7 +406,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
local t1 = minetest.get_us_time()
|
local t1 = minetest.get_us_time()
|
||||||
local diff = t1 - t0
|
local diff = t1 - t0
|
||||||
if diff > 50000 then
|
if diff > 20000 then
|
||||||
minetest.log("warning", "[technic] [+supply] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
minetest.log("warning", "[technic] [+supply] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -435,7 +435,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
local t1 = minetest.get_us_time()
|
local t1 = minetest.get_us_time()
|
||||||
local diff = t1 - t0
|
local diff = t1 - t0
|
||||||
if diff > 50000 then
|
if diff > 20000 then
|
||||||
minetest.log("warning", "[technic] [-supply] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
minetest.log("warning", "[technic] [-supply] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
@ -458,7 +458,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
local t1 = minetest.get_us_time()
|
local t1 = minetest.get_us_time()
|
||||||
local diff = t1 - t0
|
local diff = t1 - t0
|
||||||
if diff > 50000 then -- 50ms
|
if diff > 20000 then -- 50ms
|
||||||
minetest.log("warning", "[technic] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
minetest.log("warning", "[technic] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user