class_docstr: Provides a context manager that runs a code block `reps` times
  and records results to the instance variable `timings`. Use like:
  
  .. code-block:: python
  
      timer = BenchmarkTimer(rep=5)
      for _ in timer.benchmark_runs():
          ... do something ...
      print(np.min(timer.timings))
class_docstr_tok: ["Provides","a","context","manager","that","runs","a","code","block","`","reps","`","times","and","records","results","to","the","instance","variable","`","timings","`",".","Use","like",":","..","code-block",":",":","python","timer","=","BenchmarkTimer","(","rep=5",")","for","_","in","timer.benchmark_runs","(",")",":","...","do","something","...","print","(","np.min","(","timer.timings",")",")"]
code: def __init__(self, reps=1):
      self.reps = reps
      self.timings = []
  
file_path: cuml/python/cuml/benchmark/runners.py
imports: from cuml.internals.safe_imports import gpu_only_import_from
  from cuml.benchmark import datagen
  from cuml.common.device_selection import using_device_type
  import warnings
  import time
  import itertools
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 1 to create a new BenchmarkTimer object  with example: obj = BenchmarkTimer(reps)