Mod API Reference:TickCount

From Warzone Wiki
Revision as of 15:49, 6 June 2023 by Fizzer (talk | contribs) (Created page with "Mods can call the '''WL.TickCount()''' function to return an integer that represents the number of milliseconds at any point in time. This is useful for profiling code to mea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Mods can call the WL.TickCount() function to return an integer that represents the number of milliseconds at any point in time. This is useful for profiling code to measure how long certain code takes to run. To do this, call WL.TickCount() before and after the code you want to measure and subtract them to determine the number of milliseconds that the code took to run.