A dive computer is an essential piece of diving equipment which is being used to measure the time and depth of a dive so that a safe ascent rate can be calculated and displayed so that the diver can avoid decompression sickness.