Men, how do you do it?

How do you manage to stay friends with a girl you're interested in, waiting for the right time to make a move? Doesn't it bother you every time she gets involved with someone new, especially since you're aware of her romantic and sexual history? Just thinking about this gives me a headache.