Hi. I'm new to lua and I'm working on my first addons. For example - I wrote simple addon that shows frame with total time spent in combat with UnitMana == UnitManaMax (tells my rogue how much energy he lost by not using any skills). It all works, but updates only on Frame1_OnEvent.
I'd like to see it updated every 0.1 second (while in combat) without calling OnEvent, like for example, timer bars do. I'm probalby looking for WoW equivalents of good old Win32 SetTimer/OnTimer functions.
How can I do it in most resource friendly way?