Advertisement
Tritonio

Simple Lua benchmark

Aug 26th, 2022 (edited)
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. l=os.time() m=0 c=0 while true do n=os.time() if n~=l then l=n m=math.max(m,c) print("Currently: "..c,math.floor(0.5+c*100/m).."% of maximum "..m) c=0 end c=c+1 end
  2.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement