dpctl.SyclTimer.__init__

SyclTimer.__init__(host_timer=<built-in function perf_counter>, time_scale=1)[source]

Create new instance of SyclTimer.

Parameters:
  • host_timer (callable, optional) – A function that takes no arguments and returns a value measuring time. Default: timeit.default_timer().

  • time_scale (Union[int, float], optional) – Scaling factor applied to durations measured by the host_timer. Default: 1.