Python1320

Python1320

Nov 27th, 2010
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local lastSysTime=0
  2. local lastdiff=0
  3.  
  4. timer.Create('A',3,0,function()
  5.     local diff=SysTime()-lastSysTime
  6.    
  7.    
  8.    
  9.     print("Delay Delta: "..(math.Round((diff-lastdiff)*100)*0.001)..'s \tDiff: '..(math.Round(diff*100)*0.001)..'s')
  10.    
  11.     lastdiff=diff
  12.     lastSysTime=SysTime()
  13. end)
Add Comment
Please, Sign In to add comment