View Single Post
05/27/15, 10:23 PM   #4
Sasky
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 231
Take at these two functions:
Lua Code:
  1. timestamp = GetTimeStamp()
  2. elapsedSeconds = GetDiffBetweenTimeStamps(now, start)

Also, for running the update code, you can use
Lua Code:
  1. EVENT_MANAGER:RegisterForUpdate("MyTimerUpdate", 1000, updateCallback)
  Reply With Quote