US FAR's provide more clarity than Australian CAR's on this. They effectively state that the duration of any absence from the flight deck should be limited to the time needed to accomplish physiological needs (or some similar wording).
In other words, it's okay to slip out for a slash or a dump, but not to take in dinner and a movie as well.