Guest User

Untitled

a guest
Apr 26th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. HOST = "localhost"
  2. PORT = 4223
  3. UID = "aetiNB3mX2u"
  4.  
  5. from ip_connection import IPConnection
  6. from brick_dc import DC
  7.  
  8. import time
  9.  
  10. if __name__ == "__main__":
  11. ipcon = IPConnection(HOST, PORT)
  12.  
  13. dc = DC(UID)
  14. ipcon.add_device(dc)
  15.  
  16. t = time.time()
  17. i = 0
  18. while i < 10000:
  19. i += 1
  20. dc.get_velocity()
  21.  
  22. print time.time() - t
Add Comment
Please, Sign In to add comment