class_docstr: Threaded Repeated Timer from http://shortn/_3hMZTFr1Iv.
code: def _get_duration_sec(self):
      return int(time.time() - self.start_time)
  
file_path: tensorflow/tensorflow/python/distribute/coordinator/utils.py
imports: import threading
  import time
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 2 for calling the RepeatedTimer obj's underlying member method code with example usage: obj._get_duration_sec() and returns: int