DOBOT CR5 User Guide 6 Program Language
Issue V3.5.3.1 (2020-05-09) User Guide Copyright © Yuejiang Technology Co., Ltd
93
Table 6.40 Star timing command
Start timing after all commands before this command are executed completely. Use in conjunction
with ElapsedTime() command
For example: Get the execution time that a piece of code takes
Go(P2, " Speed=100 Accel=100")
ResetElapsedTime()
for i=1,10 do
Jump(P1, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
Jump(P2, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
end
print (ElapsedTime())
Sleep(1000)
Table 6.41 Stop timing command
Stop timing and return the time difference. Use in conjunction with ResetElapsedTime()
command
Time difference. Unit: ms
Go(P2, " Speed=100 Accel=100")
ResetElapsedTime()
for i=1,10 do
Jump(P1, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
Jump(P2, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
end
print (ElapsedTime())
Sleep(1000)
Table 6.42 Get current time command