Adding timer for look how many time need for load

This commit is contained in:
davedevils 2015-07-03 06:57:09 +02:00
parent c6c2607e23
commit 15256967eb
17 changed files with 272 additions and 37 deletions

View file

@ -1,3 +1,4 @@
local init = os.clock()
local path = minetest.get_modpath(minetest.get_current_modname())
local filepath = minetest.get_worldpath()
@ -277,3 +278,6 @@ minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack
end)
minetest.register_privilege("gamemode", "Permission to use /gamemode.")
local time_to_load= os.clock() - init
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))