third argument must be in microseconds