class_docstr: Class to collect timing tasks.
class_docstr_tok: ["Class","to","collect","timing","tasks","."]
docstr: Start timing a task
  
  Parameters
  ----------
  name : str
      The name of the task to measure
docstr_tok: ["Start","timing","a","task","Parameters","--","--","--","--","--","name",":","str","The","name","of","the","task","to","measure"]
code: def time(self, name: str) -> Iterator[TimingTask]:
      """Start timing a task
  
      Parameters
      ----------
      name : str
          The name of the task to measure
      """
      task = TimingTask(name)
      self.tasks[name] = task
      task.start()
      yield task
      task.stop()
  
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 13 for calling the StopWatch obj's underlying member method code with example usage: obj.time(name) without return types