It depends. It can even go for two hours long or an hour and a half. Mostly it is based on the discussion and its quality between students and his/her examiner and research supervisor. However, a dissertation is way shorter than to write a dissertation.