def get_time_spent(self):
<EOL>if not self.has_started or not self.has_ended():<EOL><INDENT>raise errors.IllegalState()<EOL><DEDENT>if self._my_map['<STR_LIT>'] is not None:<EOL><INDENT>return self.get_completion_time() - self.get_actual_start_time()<EOL><DEDENT>else:<EOL><INDENT>raise errors.IllegalState()<EOL><DEDENT>
Gets the total time spent taking this assessment.

        return: (osid.calendaring.Duration) - the total time spent
        *compliance: mandatory -- This method must be implemented.*