class_docstr: Calculate runing speed and estimated time of arrival(ETA)
class_docstr_tok: ["Calculate","runing","speed","and","estimated","time","of","arrival","(","ETA",")"]
code: def timing(self) -> float:
      run_steps = self.current_step - self.last_start_step
      self.last_start_step = self.current_step
      time_used = time.time() - self.last_time
      self.last_time = time.time()
      return run_steps / time_used
  
imports: import base64
  import contextlib
  import hashlib
  import importlib
  import math
  import os
  import socket
  import sys
  import tempfile
  import time
  import traceback
  import types
  from typing import Generator
  from typing import List
  from urllib.parse import urlparse
  import cv2
  import numpy
  import packaging.version
  import requests
  import paddlehub.env
  import paddlehub.utils
  from paddlehub.utils.log import logger
label_desc: Use image node_id 5 for calling the Timer obj's underlying member method code with example usage: obj.timing() and returns: unknown