API Parameter sim_uint64param_simulation_time_ns returns microseconds

Report crashes, strange behaviour, or apparent bugs
Post Reply
Adrian
Posts: 12
Joined: 22 Jun 2018, 23:03
Contact:

API Parameter sim_uint64param_simulation_time_ns returns microseconds

Post by Adrian »

Hi,

I am not sure if this is platform dependent, or if this was resolved in a more recent version of CoppeliaSim.

I am using the V-REP 3.6.2 for Ubuntu 16.04 and noticed that calling

Code: Select all

simGetUInt64Parameter(sim_uint64param_simulation_time_ns, &currentTime);
returns the time in microseconds. The parameter name and the documentation suggest it is in nanoseconds though.

Best,
Adrian

PS: The same thing might be true for parameter sim_uint64param_simulation_time_step_ns

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: API Parameter sim_uint64param_simulation_time_ns returns microseconds

Post by coppelia »

Thanks for the notice Adrian.

You are right, the returned data is in microseconds, rather than nanoseconds. There was a confusion somewhere with those values. In CoppeliaSim versions > V4.1.0 rev1, this will be fixed.

Cheers

Post Reply