Time limit for onEnterSleep ?

Does anybody know what the time limit is for onEnterSleep() ?
I am doing something to switch layouts that may take too long before the device goes into low power. I have some unexpected results that I am trying to figure out and thought that a time limit may be applicable here.