That's why in the UK there is/was a requirement to fit a low volt light to warn of an alternator failure. I know of someone flying an N reg with no such system, finding out that his alternator had failed only because his handheld GPS (connected to cigar lighter) went dead. The flight manual should also contain an estimate as to how long the battery would last with only the essentials running. Again a UK requirement.