The ten-second rule says that if your ball is hanging over the edge of the hole, you can wait ten seconds after reaching it to see if it drops.

You're allowed reasonable time to walk to the hole, then ten seconds. If the ball falls in within that time, it's holed with your previous stroke. If it drops in later, it counts as holed but you add a one-stroke penalty, so it's the same as if you'd tapped it in.