LuaProfiler

class LuaProfiler - sort
reset() Resets the clock, also restarting it.
stop() Stops the clock.
restart() Start the clock again, without resetting it.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

An object used to measure script performance.

Note: Since performance is non-deterministic, these objects can not be saved, nor can the raw time values be read from lua. They can be used anywhere a LocalisedString is used.
reset()

Resets the clock, also restarting it.

stop()

Stops the clock.

restart()

Start the clock again, without resetting it.