Added in log to show total time.

This commit is contained in:
Adam Harrison 2022-04-30 16:23:05 -04:00
parent b7db7cd533
commit 548dbf67c2
1 changed files with 3 additions and 0 deletions

View File

@ -905,6 +905,8 @@ function core.load_plugins()
end
table.sort(ordered)
local load_start = system.get_time()
for _, filename in ipairs(ordered) do
local plugin_dir, basename = files[filename], filename:match("(.-)%.lua$") or filename
local is_lua_file, version_match = check_plugin_version(plugin_dir .. '/' .. filename)
@ -923,6 +925,7 @@ function core.load_plugins()
end
end
end
core.log_quiet("Loaded all plugins in %.1fms", (system.get_time() - load_start)*1000)
return no_errors, refused_list
end