the correct way would be to tell the fellow pilot about the requirement for the power nap and to be woken up before the INSPECTOR was allowed in the cockpit.
or was he already in the cockpit then......
i actually wanted some of the captains/fos i flew with to sleep during the entire flight ...this was in the interest of flight safety.