Script execution

This commit is contained in:
gac-S_Changer
2017-01-26 15:42:15 +01:00
parent 8dc307b426
commit 4342802e38

32
script/TestRobotCmds.py Normal file
View File

@@ -0,0 +1,32 @@
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