From 548dbf67c2bedac2e7aca1ec687557a5bdda34e1 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 30 Apr 2022 16:23:05 -0400 Subject: [PATCH] Added in log to show total time. --- data/core/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/core/init.lua b/data/core/init.lua index ad3f817c..0b386804 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -904,7 +904,9 @@ function core.load_plugins() end 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