def capture_and_print_timeshot(self, start_time, which,<EOL>other=<NUM_LIT>, switch="<STR_LIT>"):
curr_timeout = time.time() - start_time<EOL>if which in self.time_stats:<EOL><INDENT>self.time_stats[which]["<STR_LIT>"] += curr_timeout<EOL>self.time_stats[which]["<STR_LIT>"] += <NUM_LIT:1><EOL>if (curr_timeout < self.time_stats[which]["<STR_LIT>"]):<EOL><INDENT>self.time_stats[which]["<STR_LIT>"] = curr_timeout<EOL><DEDENT>if (curr_timeout > self.time_stats[which]["<STR_LIT>"]):<EOL><INDENT>self.time_stats[which]["<STR_LIT>"] = curr_timeout<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.time_stats[which] = {<EOL>"<STR_LIT>": curr_timeout,<EOL>"<STR_LIT>": <NUM_LIT:1>,<EOL>"<STR_LIT>": curr_timeout,<EOL>"<STR_LIT>": curr_timeout}<EOL><DEDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch,<EOL>'<STR_LIT>': os.getpid(),<EOL>'<STR_LIT>': threading.current_thread().ident,<EOL>'<STR_LIT>': which,<EOL>'<STR_LIT>': curr_timeout,<EOL>'<STR_LIT:count>': self.time_stats[which]["<STR_LIT>"],<EOL>'<STR_LIT>': (self.time_stats[which]["<STR_LIT>"] /<EOL>self.time_stats[which]["<STR_LIT>"]),<EOL>'<STR_LIT>': other,<EOL>'<STR_LIT>': self.time_stats[which]["<STR_LIT>"],<EOL>'<STR_LIT>': self.time_stats[which]["<STR_LIT>"]})<EOL>
Determine delta, keep track, and print results.