How would I tell me addon to do something once per second? For every second while I'm doing something (in combat for example). So for every second I was in combat (on the interval) I want to take a snapshot of my hp, and store the value returned so I could call it later. i also want it to work the whole time im in combat.
example because i dont think that was clear at all:
0 second: enter combat:start recording
1 second: record playerHP1
2 second: record playerHP2
3 second: leave combat:stop recording
print: ("At 1 second your health was " .. playerHP1)
print: ("At 2 second your health was " .. playerHP2)
I see it more like... if you use a lib (one that doesn't run too heavy, which the Ace3-libs claim to be (not heavy that is)) you're using tested and true code instead of your own stuff which can have a myriad of bugs in it.
Especially when they're drycoded by someone :p.
Of course, these "code bits" might already be second nature to you...
Again I add the "me = noob" disclaimer. Just throwing out what I'm thinking so you guys can refute or confirm it.
Things change when you're using a non-tested-to-the-bone lib like LibMindReader or sth ;)