class_docstr: Callback that measures the training and testing time of a PyTorch Lightning module.
code: def __init__(self) -> None:
      self.start: float
      self.num_images: int = 0
  
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 1 to create a new TimerCallback object from inherited base classes: Callback with example: obj = TimerCallback()