An object used to measure script performance.

class LuaProfiler - sort

reset() | Resets the clock, also restarting it. |

stop() | Stops the clock. |

restart() | Start the clock again, without resetting it. |

divide(number) | Divides the current duration by a set value. |

valid :: boolean [R] | Is this object valid? |

help() → string | All methods, and properties that this object supports. |

reset()

Resets the clock, also restarting it.

stop()

Stops the clock.

restart()

Start the clock again, without resetting it.

divide(number)

Divides the current duration by a set value. Useful for calculating the average of many iterations.

Parameters

number :: double: The number to divide by. Must be > 0.