Adding timer for look how many time need for load
This commit is contained in:
parent
c6c2607e23
commit
15256967eb
17 changed files with 272 additions and 37 deletions
|
@ -4,6 +4,7 @@
|
|||
Original from Echo, here: http://forum.minetest.net/viewtopic.php?id=3795
|
||||
]]--
|
||||
|
||||
local init = os.clock()
|
||||
|
||||
--Rotinas usadas pelo mod
|
||||
dofile(minetest.get_modpath("watch").."/rotinas.lua")
|
||||
|
@ -11,5 +12,5 @@ dofile(minetest.get_modpath("watch").."/rotinas.lua")
|
|||
--Declarações dos objetos
|
||||
dofile(minetest.get_modpath("watch").."/itens.lua")
|
||||
|
||||
-- Apenas para indicar que este módulo foi completamente carregado.
|
||||
DOM_mb(minetest.get_current_modname(),minetest.get_modpath(minetest.get_current_modname()))
|
||||
local time_to_load= os.clock() - init
|
||||
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue