Before the advent of electronics, swimmers used to be timed manually. This was obviously pretty inefficient, and inaccurate. This led to automatic timers that were triggered when the swimmer touched it. The earliest touchpads in swimming were crude devices, but modern ones are brilliantly unerring, efficient, and sturdy.