How long to play dead in order to stay alive?

Many animals remain motionless or play dead after being attacked by a predator in the hope that it will give up and move onto some other unfortunate prey.