class_docstr: Logger which writes to another logger at a given time interval.
class_docstr_tok: ["Logger","which","writes","to","another","logger","at","a","given","time","interval","."]
docstr: Initializes the logger.
  
  Args:
    to: A `Logger` object to which the current object will forward its results
      when `write` is called.
    time_delta: How often to write values out in seconds.
      Note that writes within `time_delta` are dropped.
docstr_tok: ["Initializes","the","logger",".","Args",":","to",":","A","`","Logger","`","object","to","which","the","current","object","will","forward","its","results","when","`","write","`","is","called",".","time_delta",":","How","often","to","write","values","out","in","seconds",".","Note","that","writes","within","`","time_delta","`","are","dropped","."]
code: def __init__(self, to: base.Logger, time_delta: float):
      """Initializes the logger.
  
      Args:
        to: A `Logger` object to which the current object will forward its results
          when `write` is called.
        time_delta: How often to write values out in seconds.
          Note that writes within `time_delta` are dropped.
      """
      self._to = to
      self._time = 0
      self._time_delta = time_delta
      if time_delta < 0:
          raise ValueError(
              f"time_delta must be greater than 0 (got {time_delta})."
          )
  
imports: import math
  import time
  from typing import Callable, Optional, Sequence
  from acme.utils.loggers import base
label_desc: Use image node_id 1 to create a new TimeFilter object from inherited base classes: base with example: obj = TimeFilter(to, time_delta)