Swimming

Is there a way to record the length of time I'm swimming rather than the distance?