Usually the recommendation is to take short, no longer than 30 minutes naps. Supposedly, after 30 minutes you go into deep sleep and waking up will make you feel tired. I haven’t reviewed the scientific validity of the claims, but it has always worked for me.
And yet, it’ll keep being available in the high seas.