(self)
Get timer duration in seconds
Get timer duration in seconds
Get timer duration in seconds
def duration(self):
        """Get timer duration in seconds"""
        if self.beginning and self.end:
            return self.end - self.beginning
        elif self.beginning:
            return time.time() - self.beginning
def duration ( self ) : if self . beginning and self . end : return self . end - self . beginning elif self . beginning : return time . time ( ) - self . beginning