wowpedia
Main Menu


Returns the time in milliseconds since the last call to debugprofilestart().

elapsedMilliseconds = debugprofilestop()

Returns

elapsedMilliseconds
number - Time since profiling was started in milliseconds.

Details

 local beginTime = debugprofilestop()
 -- do lots of stuff
 -- that takes lots of time
 
 local timeUsed = debugprofilestop()  -beginTime
 print("I used "..timeUsed.." milliseconds!")

See also