I have had a total electronics failure on a yacht, at night, coastal. That included GPS, moving map, autopilot, fluxgate compass, log (ASI). plus computed variable eg speed over ground, course made good (track), etc. By "total failure" I don't mean it went black, that's too easy. i mean that within a very short time none of the instruments agreed with each other. This can be terrifying as you can't tell whats true..
The length of your own period of confusion is a direct function of situational awareness and especially the time since your last recorded accurate position fix, fuel state, track, heading and velocity.
I confess to having a music input on my intercom and an associated iphone cable in the aircraft. I've never felt I had the time to relax and use it. The aviate/ navigate/ communicate cross check loop takes all my time.