Take a toothpick and pierce the thickest part of the cake. If the toothpick comes out mostly clean, with a few moist crumbs, your cake is ready to eat. If it comes out with sticky batter, then you need to bake it for a little longer.