Advertisement
wassimevicw

توقيت للثواني

Aug 5th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. a = os.time()
  2. s = 1
  3. function eventLoop()
  4.     if os.time() - 1000 > a then
  5.         print(string.format("مرت %d ثواني",s))
  6.            s = s + 1
  7.         a = os.time()
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement