I know snakes need thier heat so here is my question....

When you take a snake out of its enclosure to hold and just spend time with, how long is a good amount of time? Also, how long is too long? Don't want to stress them out.