Page 1 of 1

Task duration

Posted: 09 Apr 2018, 10:47
by nems
Hello,
I was wondering if there is a function in VREp to estimate the duration of a task performed by a serial robot.

Cheers

Re: Task duration

Posted: 12 Apr 2018, 07:04
by coppelia
Hello,

you can use following inside of a child script:

Code: Select all

startTime=sim.getSystemTimeInMs(-1)

-- do your calculations here

timeDiff=sim.getSystemTimeInMs(startTime)
print("Duration in seconds: "..timeDiff/1000)
Cheers