Can someone explain timing of taking temps?

Nickie

So I read to take the temp at the same time each day but what if you wake up one day earlier, even if you sat an alarm?

Also what if you’re restless all night and not getting a 4 hour chunk of sleep? 🤔