Hi Francesco,
I have a similar problem with Python using the function time.sleep(). I created a new post here.
Lorenzo