Skip to main content
Skip table of contents

end_timer()

Features

This is a command to measure the execution time of the simulation program of the controller. When used with the start_timer() command, it returns the execution time of the script between the two functions.


Caution

This function is for measuring motion execution time in Windows environment and Linux environment. When measuring in Real mode in an emulator (virtual controller) environment, incorrect values ​​may be returned.

Return

ValueDescription

float

Measured time information (process execution time)

Example

PY
start_timer()
wait(1)
t= end_timer()
tp_log("tttt={0} sec".format(t))

Related Commands

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.