Log In  

In case your game gets slow, it's always helpful to identify the parts of code that take up too much time to compute. This is how you can measure execution time:

local start = stat(1)
-- .... do some intensive stuff ....
printh("this took "..((stat(1)-start)*100).."% of a frame")

Hope it helps, and thanks to @Felice for pointing out how to accomplish this.


P#43676 2017-08-27 08:46 ( Edited 2017-08-27 14:51)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-02-28 18:24:00 | 0.007s | Q:9