Files
tell/script/test/TestRobotCmds.py
gac-S_Changer bdf5049f96 Creation
2018-12-03 12:17:40 +01:00

32 lines
741 B
Python

import java.lang.System as System
index = 0
max_time = 0
while True:
start = System.currentTimeMillis()
robot.execute(1,1,1)
time.sleep(0.01)
robot.execute(2,1,1)
time.sleep(0.01)
robot.execute(1,1,1)
time.sleep(0.01)
robot.execute(2,1,1)
time.sleep(0.01)
robot.execute(1,1,1)
time.sleep(0.01)
robot.execute(2,1,1)
time.sleep(0.01)
robot.execute(1,1,1)
time.sleep(0.01)
robot.execute(2,1,1)
time.sleep(0.01)
robot.execute(1,1,1)
time.sleep(0.01)
robot.execute(2,1,1)
time.sleep(0.01)
cur_time = System.currentTimeMillis() - start
max_time = max(cur_time, max_time)
print index, cur_time, max_time
index = index + 1