def on_phase_start(self):
    self.phase_start_time_total = time.perf_counter()
    self.advance_phase()
    for hook in self.hooks:
        hook.on_phase_start(self)
    self.phase_start_time_train = time.perf_counter()
def on_phase_start(self):
    self.phase_start_time_total = time.perf_counter()
    self.advance_phase()
    for hook in self.hooks:
        hook.on_phase_start(self)
    self.phase_start_time_train = time.perf_counter()