have you tried with `usleep` to wait for less than a second?