View Single Post
04/08/17, 08:46 AM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
There is also GetFrameTimeMilliseconds()
GetFrameTimeMilliseconds() gives a timestamp in milliseconds, where the frame your Lua code currently runs for, started to render. It keeps the value until all Lua is done. While GetGameTimeMilliseconds() is continous even within the frame.
=> GetGameTimeMilliseconds()>=GetFrameTimeMilliseconds().

If you need time quantized to the frame use GetFrameTimeMilliseconds().

Even if GetGameTimeMilliseconds()-GetFrameTimeMilliseconds() >= 2000, the user has not seen it, because the screen has freezed.

Last edited by votan : 04/08/17 at 08:55 AM.
  Reply With Quote