This device is called the marine chronometer. It was coined by Jeremy Thacker from the Greek word 'chronos' which means time and the word 'meter' which means counter. However, the person who invented this was John Harrison during the 18th century. At that time, he earned £20,000.