class_docstr: Class Timer is for calculate time.
docstr: Calculate time span.
docstr_tok: ["Calculate","time","span","."]
code: def get_elapsed(self, restart=True):
      """
      Calculate time span.
      """
      end = time.time()
      span = end - self.__start
      if restart:
          self.__start = end
      return span
  
file_path: nni/examples/trials/weight_sharing/ga_squad/util.py
imports: import time
  import tensorflow
label_desc: Use image node_id 3 for calling the Timer obj's underlying member method code with example usage: obj.get_elapsed(restart) and returns: span