Member variable Thread():deltaTime Foundation

Elapsed time since the last restart of a thread.

Data type: Numeric (0)

If a Thread object is to execute its program code repeatedly, a time interval can be specified in 1/100ths of a second using the :setInterval() method. When the interval has expired, the program code is executed automatically again. However, the operating system cannot guarantee that a thread will be restarted exactly at that point in time when the interval expires. Therefore, the exact elapsed time since the last restart is stored in the :deltaTime instance variable. It is calculated each time an execution cycle is complete. If the value of :deltaTime is repeatedly added to a LOCAL variable, the result is the exact total execution time of a thread.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.