However, keep in mind that the values from GetNetStats are cached and won't update more often than every 30 seconds, no matter how often you call the function. Depending on your needs, you could also watch player spellcast events instead, and track the time difference between UNIT_SPELLCAST_SENT and UNIT_SPELLCAST_STARTED for the same spell.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|