aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-01-02 20:50:41 +0100
committerorwell96 <orwell@bleipb.de>2021-02-10 16:39:46 +0100
commit56fe578916217cd17749f586fb72201b76d73d95 (patch)
tree21346f6889b5ff256e9a55de862ff10b04673fd8 /advtrains
parent080fbcf2fc1c39d76a82f73b7da0713b6f0fbc16 (diff)
downloadadvtrains-56fe578916217cd17749f586fb72201b76d73d95.tar.gz
advtrains-56fe578916217cd17749f586fb72201b76d73d95.tar.bz2
advtrains-56fe578916217cd17749f586fb72201b76d73d95.zip
Log how long saving takes
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/init.lua3
1 files changed, 2 insertions, 1 deletions
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