Lines Matching refs:Ticks
460 using Ticks = uint32_t; typedef
463 Ticks TimerResolution() { in TimerResolution()
465 Ticks repetitions[Params::kTimerSamples]; in TimerResolution()
467 Ticks samples[Params::kTimerSamples]; in TimerResolution()
469 const Ticks t0 = timer::Start32(); in TimerResolution()
470 const Ticks t1 = timer::Stop32(); in TimerResolution()
478 static const Ticks timer_resolution = TimerResolution();
483 Ticks SampleUntilStable(const double max_rel_mad, double* rel_mad, in SampleUntilStable()
485 auto measure_duration = [&lambda]() -> Ticks { in SampleUntilStable()
486 const Ticks t0 = timer::Start32(); in SampleUntilStable()
488 const Ticks t1 = timer::Stop32(); in SampleUntilStable()
493 Ticks est = measure_duration(); in SampleUntilStable()
499 std::vector<Ticks> samples; in SampleUntilStable()
505 const Ticks max_abs_mad = (timer_resolution + 99) / 100; in SampleUntilStable()
511 const Ticks r = measure_duration(); in SampleUntilStable()
524 const Ticks abs_mad = robust_statistics::MedianAbsoluteDeviation( in SampleUntilStable()
561 Ticks min_duration = ~0u; in NumSkip()
577 const Ticks total = SampleUntilStable( in NumSkip()
658 Ticks TotalDuration(const Func func, const void* arg, const InputVec* inputs, in TotalDuration()
661 const Ticks duration = in TotalDuration()
679 Ticks Overhead(const void* arg, const InputVec* inputs, const Params& p) { in Overhead()
745 const Ticks overhead = Overhead(arg, &full, p); in MeasureImpl()
746 const Ticks overhead_skip = Overhead(arg, &subset, p); in MeasureImpl()
759 const Ticks total = TotalDuration(func, arg, &full, p, &max_rel_mad); in MeasureImpl()
763 const Ticks total_skip = TotalDuration(func, arg, &subset, p, &max_rel_mad); in MeasureImpl()
771 const Ticks duration = (total - overhead) - (total_skip - overhead_skip); in MeasureImpl()