class Benchmark::IPS::Job
def cycles_per_100ms time_msec, iters
-
(Integer)
- Cycles per 100ms.
Parameters:
-
iters
(Integer
) -- Iterations. -
time_msec
(Float
) -- Each iteration's time in ms.
def cycles_per_100ms time_msec, iters cycles = ((MICROSECONDS_PER_100MS / time_msec) * iters).to_i cycles <= 0 ? 1 : cycles end