GetTickTime

From Warcraft Wiki
Jump to navigation Jump to search

Returns the time in seconds since the end of the previous frame and the start of the current frame.

elapsed = GetTickTime()

Returns

elapsed
number - The time in seconds since the last frame.

Details

  • Multiple calls to this function within the same frame will all return the same value.
  • The value returned from this function appears to be identical to the value passed to OnUpdate scripts executed at the end of the current frame as the elapsed parameter.

Patch changes

Legion Patch 7.0.3 (2016-07-19): Added.[1]

References

 
  1. ^ Townlong-Yak 2016-07-19. Util.lua.