JeViCo

Untitled

Jan 4th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local m = setElementData(root, "hello", "world")
  2. local getElementData = getElementData
  3. local function test1()
  4.     local h1, h2, h3 = debug.gethook()
  5.     debug.sethook()
  6.     local t1 = getTickCount()
  7.     local n
  8.     for i = 1, 1000000 do
  9.         n = getElementData(root, "hello")
  10.     end
  11.     local t2 = getTickCount()
  12.     debug.sethook( _, h1, h2, h3 )
  13.     return t2 - t1
  14. end
  15.  
  16. print(test1())
Add Comment
Please, Sign In to add comment