Advertisement
TheRockettek

Untitled

May 31st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. while true do
  2. time = http.get("http://smaller.hol.es/unix.php").readAll()
  3. if not lasttime then
  4. lasttime = time
  5. end
  6. if lasttime-time > 1 then
  7. peripheral.wrap("left").say("&7[&bLagDetect&7] &7Woah there was &6" .. lasttime - time .. " &7seconds of lag just now.")
  8. print("There was " .. lasttime - time .. " second lag!")
  9. end
  10. lasttime = time
  11. sleep(1)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement