Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p=peripheral.wrap("left")
- while true do
- time1=os.time()
- a=p.getStoredItems()
- amount1=a.qty
- sleep(10)
- a=p.getStoredItems()
- amount2=a.qty
- time2=os.time()-time1
- difference=math.abs((amount1-amount2)/(time2*1000))
- print(difference.." n/t - "..(difference*20).." n/s")
- end
- shell.run("lua")
Add Comment
Please, Sign In to add comment