There is a mention of an hourglass in a ship’s inventory in the 1300s.
At sea, it’s difficult to know exactly where you are. No landmarks. No way to tell how far you are from land. Sailors had to be creative. To figure out distance, they used time.
Sailors liked the hourglass because it isn’t as affected by a ship’s bouncing around on the waves as a water-clock would be—it still marks an hour accurately. Smaller sandglasses with less sand mark shorter periods of time. Sailors could judge how fast their ship were traveling by ‘casting the log.’ They had a length of line—heavy cord—with a piece of wood (the log) tied to its end, and knots tied in it at regular intervals. They’d throw the log into the sea and turn the glass at the same time. The log dragged behind and pulled the line with it. When the sand ran out, they’d nip the line and count how many knots had run out. Number of knots = distance traveled in a set space of time.
If you know how fast you’re traveling, you can make a guess how far you traveled in an hour or a day or a week. This is how the sailors used to calculate where they were on the ocean.
Casting the log is said to have been invented in the 1500s. The first evidence of a ship’s log-book is from the 1600s. This is a guess, but it seems to me that the log-book would have been originally a record of the ship’s speeds—that eventually became a record of any important events that happened aboard the ship. With time, ‘log-book’ got shortened to ‘log.’
Today, people who post regularly on the worldwide web refer to their sad ramblings as a ‘web-log’ or ‘blog’ for short. Spare a thought for us poor, attention-starved souls.
Here’s an excellent video about casting the log.
https://www.britannica.com/technology/log-nautical-instrument
https://en.wikipedia.org/wiki/Chip_log
https://www.archives.gov/research/military/logbooks/naval-deck-logs.html
More about time and distance.