Lore archive · Warcraft Wiki, 2023 dump
API debugprofilestop
Last wiki revision 2022-07-21
Returns the time in milliseconds since the last call to debugprofilestart. elapsedMilliseconds = debugprofilestop
- elapsedMilliseconds: - Time since profiling was started in milliseconds.
local beginTime = debugprofilestop -- do lots of stuff -- that takes lots of time local timeUsed = debugprofilestop -beginTime print("I used "..timeUsed.." milliseconds!")
- Debug profiling provides a high-precision timer that can be used to profile code.
- Calling this function, despite its name, does NOT stop the timer. It simply returns the time since the previous debugprofilestart call!
- Note that if you are simply using this to profile your own code, it is preferable to NOT keep re-starting the timer since it will interfere with other addons doing the same. Instead, do this:
Source
https://warcraft.wiki.gg/wiki/API_debugprofilestop · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.