Any of those. I use the same trick to a lesser degree to keep going during sex as well. If I feel like I'm going to blow too early, I think of mildly unsexual things to stave off ejaculation, and then keep going.
The catch is not to think of other things for too long, or you lose your bone