Dive computers calculate safe limits for how long a diver can stay underwater based on time and depth. The first versions in the early 1950s were mechanical, but they later incorporated electronic computers.