What movie is this?

while reading some other posts I remembered a part of a movie.

The main character was learning to do something that involved some kind of meditation. His instructor advised him to use an alarm clock to keep himself from falling into some kind of permanant sleep. At one point in the movie he didn’t set the clock and meditated or slept for a long time (think it was 3 days) and his instructor had to wake him up to prevent him fron sustaining some kind of damage.

This ring a bell to anyone?

Yeah, that sounds way too familiar. Gah! I can’t remember!