Advertisement
Arnethegreat

Simple frame vs realtime comparision script

Oct 3rd, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. NumberOfFrames = 3600 -- Input number of frames
  2.  
  3. emu.frameadvance()
  4. StartTime = os.clock()
  5. StartFrame = emu.framecount()
  6.  
  7. for i = 1, NumberOfFrames do
  8.     emu.frameadvance()
  9. end
  10. StopTime = os.clock()
  11. StopFrame = emu.framecount()
  12. emu.frameadvance()
  13. print("Frames:" .. StopFrame - StartFrame)
  14. print("Time:" .. StopTime - StartTime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement