class_docstr: TimeWindow
  The unit of timestamp is milliseconds, the unit of window(range, step) is seconds.
class_docstr_tok: ["TimeWindow","The","unit","of","timestamp","is","milliseconds",",","the","unit","of","window","(","range",",","step",")","is","seconds","."]
code: def __init__(
      self,
      time_range_sec: int,
      time_step_sec: int,
      start_time_sec: int = 0,
  ):
      self._start_time_m = start_time_sec * 1000
      self._end_time_m = self._start_time_m + time_range_sec * 1000
      self._next_start_time_m = (start_time_sec + time_step_sec) * 1000
      self._time_range_sec = time_range_sec
      self._time_step_sec = time_step_sec
      self._window = []
      self._next_window = None
  
file_path: towhee/towhee/runtime/nodes/_time_window.py
imports: from towhee.runtime.constants import TimeWindowConst
  from towhee.runtime.data_queue import Empty
  from ._window_base import WindowBase
label_desc: Use image node_id 1 to create a new _TimeWindowBuffer object  with example: obj = _TimeWindowBuffer(time_range_sec, time_step_sec, start_time_sec)