def time(self, extraMsg=''):
    '\n        time the action and print if profile is active\n        '
    elapsed = (time.time() - self.starttime)
    if self.profile:
        print(f'{self.msg}{extraMsg} took {elapsed:5.1f} s')
    return elapsed
time the action and print if profile is active
def time(self, extraMsg=):
    '\n        \n        '
    elapsed = (time.time() - self.starttime)
    if self.profile:
        print(f'{self.msg}{extraMsg} took {elapsed:5.1f} s')
    return elapsed