class_docstr: Callback that measures the training and testing time of a PyTorch Lightning module.
docstr: Call when fit ends.
  
  Prints the time taken for training.
  
  Args:
      trainer (Trainer): PyTorch Lightning trainer.
      pl_module (LightningModule): Current training module.
  
  Returns:
      None
code: def on_fit_end(
      self, trainer: Trainer, pl_module: LightningModule
  ) -> None:  # pylint: disable=W0613
      """Call when fit ends.
  
      Prints the time taken for training.
  
      Args:
          trainer (Trainer): PyTorch Lightning trainer.
          pl_module (LightningModule): Current training module.
  
      Returns:
          None
      """
      logger.info(
          "Training took %5.2f seconds", (time.time() - self.start)
      )
  
file_path: anomalib/src/anomalib/utils/callbacks/timer.py
imports: import logging
  import time
  from pytorch_lightning import Callback, LightningModule, Trainer
label_desc: Use image node_id 3 for calling the TimerCallback obj's underlying member method code with example usage: obj.on_fit_end(trainer, pl_module) without return types