matheuscat12

Constant Clock

Aug 18th, 2012
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. function c()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5.  
  6. c()
  7. print("Constant Clock - by Rednet Works")
  8. sleep(2)
  9. c()
  10.  
  11. function clock()
  12.   while true do
  13.     sleep(0.003)
  14.     nTime = os.time()
  15.     print( textutils.formatTime(nTime, false) )
  16.     sleep(0.003)
  17.     c()
  18.     clock()
  19.   end
  20. end
  21.  
  22. clock()
Add Comment
Please, Sign In to add comment