local thunk = require("core.thunk")
local timerlib = require("core.timer")
local runlistlib = require("core.runlist")
local runList = runlistlib.RunList.New()
thunk.Install("OnCreatureUpdate", function(crt)
  runList:Update(crt:GetUnitTime())
end)
local StartCreatureTimer = function(period, callback, ...)
  local T = timerlib.Timer.New(runList, period, callback, ...)
  T:Start()
  return T
end
_G.StartCreatureTimer = StartCreatureTimer
return {StartCreatureTimer = StartCreatureTimer}
