<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_elapsed(self, restart=True):
        '''
        Calculate time span.
        '''
        end = time.time()
        span = end - self.__start
        if restart:
            self.__start = end
        return span