class_docstr: Class to collect timing tasks.
class_docstr_tok: ["Class","to","collect","timing","tasks","."]
code: def __str__(self) -> str:
      headers = [
          "Name",
          "CPUStart",
          "CPUEnd",
          "CPUDur",
          "WallStart",
          "WallEnd",
          "WallDur",
      ]
      header = "|".join([f"{h:10s}" for h in headers])
  
      sep = "-" * 12
      seperator = "+" + "+".join(repeat(sep, len(headers))) + "+"
  
      entries = []
      for name, task in self.tasks.items():
          entry = (
              f"{task.name:10s} | {task.cpu_start:10.5f} | {task.cpu_end: 10.5f} | "
              f"{task.cpu_duration:10.5f} | {task.wall_start: 10s} | "
              f"{task.wall_end:10s} | {task.wall_duration:10s} |"
          )
          entries.append(entry)
  
      return "\n".join([header, seperator] + entries)
  
imports: from __future__ import annotations
  from typing import Iterator, Mapping, Optional, Tuple
  import sys
  import time
  from contextlib import contextmanager
  from itertools import repeat
  from typing_extensions import Literal
label_desc: Use image node_id 14 for calling the StopWatch obj's underlying member method code with example usage: obj.__str__() and returns: str