added timing to standalone test

master
George Hotz 2017-05-02 23:25:54 -07:00
parent ad0c9b092e
commit f075bb5718
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ if __name__ == "__main__":
p = Panda()
print p.health()
print p.get_serial()
t1 = time.time()
for i in range(100):
p.get_serial()
t2 = time.time()
print "100 requests took %.2f ms" % ((t2-t1)*1000)
p.set_controls_allowed(True)
a = 0