Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## VICTOR: put this in your for loop, at the end - just do me a favour and change a couple of the bits of the code (order, variables) so it looks like we have our own solutions (though I don't think he's that strict)
- if (response[i] > 10): # if most recent ping is greater than 10 ms,
- delayTime = 2
- print ('Delaying next ping for ' + str(delayTime) + ' seconds.')
- time.sleep(delayTime) # delay for 2 seconds before initiating next ping
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement