From 56fe578916217cd17749f586fb72201b76d73d95 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 2 Jan 2021 20:50:41 +0100 Subject: Log how long saving takes --- advtrains/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'advtrains') diff --git a/advtrains/init.lua b/advtrains/init.lua index de06ef4..13e5f70 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -668,11 +668,12 @@ function advtrains.save(remove_players_from_wagons) return end + local t1 = os.clock() advtrains.avt_save(remove_players_from_wagons) --saving advtrains. includes ndb at advtrains.ndb.save_data() if atlatc then atlatc.save() end - atprint("[save_all]Saved advtrains save files") + atlog("Saved advtrains save files, took",math.floor((os.clock()-t1) * 1000),"ms") -- Cleanup actions --TODO very simple yet hacky workaround for the "green signals" bug -- cgit v1.2.3