summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Debuggers/Debuggers.lua
diff options
context:
space:
mode:
authorMatyas Dolak <dolak@eset.cz>2015-01-27 13:28:01 +0100
committerMatyas Dolak <dolak@eset.cz>2015-01-27 13:28:01 +0100
commit42162b5193eb990ccf052ab2814ea136b0d4bc45 (patch)
tree6fc7d1c7a7fa7a8b884c3db4bab13428df91598d /MCServer/Plugins/Debuggers/Debuggers.lua
parentMerge pull request #1716 from Raekye/master (diff)
downloadcuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar.gz
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar.bz2
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar.lz
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar.xz
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.tar.zst
cuberite-42162b5193eb990ccf052ab2814ea136b0d4bc45.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index a047488b5..a46072324 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -1164,7 +1164,7 @@ function HandleSched(a_Split, a_Player)
end
-- Schedule a broadcast of the final message and a note to the originating player
- -- Note that we CANNOT us the a_Player in the callback - what if the player disconnected?
+ -- Note that we CANNOT use the a_Player in the callback - what if the player disconnected?
-- Therefore we store the player's EntityID
local PlayerID = a_Player:GetUniqueID()
World:ScheduleTask(220,
@@ -1607,10 +1607,13 @@ end
function HandleConsoleSchedule(a_Split)
- LOG("Scheduling a task for 2 seconds in the future")
+ local prev = os.clock()
+ LOG("Scheduling a task for 2 seconds in the future (current os.clock is " .. prev .. ")")
cRoot:Get():GetDefaultWorld():ScheduleTask(40,
function ()
- LOG("Scheduled function is called.")
+ local current = os.clock()
+ local diff = current - prev
+ LOG("Scheduled function is called. Current os.clock is " .. current .. ", difference is " .. diff .. ")")
end
)
return true, "Task scheduled"