class_docstr: Timer class for recording elapsed wall time in operations.
class_docstr_tok: ["Timer","class","for","recording","elapsed","wall","time","in","operations","."]
code: def __str__(self):
      elapsed = self.elapsed()
      if elapsed < 1:
          return "{: 0.0f}ms".format(elapsed * 1000)
      elif elapsed > 60 * 60:
          h, m = divmod(elapsed, 60 * 60)
          m, s = divmod(m, 60)
          return "{:0.0f}h{:0.0f}m{:0.2f}s".format(h, m, s)
      elif elapsed > 60:
          m, s = divmod(elapsed, 60)
          return "{:0.0f}m{:0.2f}s".format(m, s)
      else:
          return "{:0.2f}s".format(elapsed)
  
imports: import time
label_desc: Use image node_id 5 for calling the Stopwatch obj's underlying member method code with example usage: obj.__str__() and returns: str, str, str, str