Whether you're playing in a poker room or online, set a timer or alarm on your phone. Decide on a time limit before you play and stick to it. There are also reality checks on some online sites, but some of them don't work for poker play, so make sure yours does!