docstr: Compares the current time with the start time, and records the time difference
  in our time log in the appropriate register. Times can stack for a context.
docstr_tok: ["Compares","the","current","time","with","the","start","time",",","and","records","the","time","difference","in","our","time","log","in","the","appropriate","register",".","Times","can","stack","for","a","context","."]
code: def record_time(
      self,
      dataset: int,
      variable_name: str,
      iteration: int,
      timed_event: str,
  ):
      """
      Compares the current time with the start time, and records the time difference
      in our time log in the appropriate register. Times can stack for a context.
      """
      seconds = (dt.now() - self._start_time).total_seconds()
      time_key = (dataset, variable_name, iteration, timed_event)
      if time_key in self.time_seconds:
          self.time_seconds[time_key] += seconds
      else:
          self.time_seconds[time_key] = seconds
  
file_path: miceforest/miceforest/logger.py
imports: from .compat import pd_Series, pd_DataFrame, PANDAS_INSTALLED
  from datetime import datetime
  from typing import Dict, Any
label_desc: Use image node_id 5 for calling the Logger obj's underlying member method code with example usage: obj.record_time(dataset, variable_name, iteration, timed_event) without return types