There are a few "personal RPGs", generally for phones, that try to do just this. I haven't tried them, and they generally "tick" off of the GPS or accelerometer, so a stationary bike probably won't get you squat, but the running machine might, and the bicycle and / or running definitely would...