A hard-boiled egg takes longer to cook than a soft-boiled egg.