def elapsed(self, slot=''):
        """ Get the time difference between now and a previous
        time slot named 'slot' """

        # Note: 'slot' has to be marked previously
        return time.time() - self.timedict.get(slot)
 Get the time difference between now and a previous
        time slot named 'slot' 
recipes/Python/496938_A_basic_time_profiler/recipe-496938.py