Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- time = http.get("http://smaller.hol.es/unix.php").readAll()
- if not lasttime then
- lasttime = time
- end
- if lasttime-time > 1 then
- peripheral.wrap("left").say("&7[&bLagDetect&7] &7Woah there was &6" .. lasttime - time .. " &7seconds of lag just now.")
- print("There was " .. lasttime - time .. " second lag!")
- end
- lasttime = time
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement