He set his clock to wake him up at four?
According to the Hobbit, there was clocks in Middle-earth, or at least Bilbo had one.
An early prototype of an alarm clock was invented by the Greeks around 250 BC.
Maybe Merry had bought one in case he didn't trust the local rooster.