TIMEIT_REPEAT, TIMEIT_END_REPEAT
Synopsis
#include <flint/profiler.h>TIMEIT_REPEAT(timer, reps)sourceTIMEIT_END_REPEAT(timer, reps)sourceRun the code between the two macros repeatedly, starting with one repetition and multiplying the number of repetitions by 10 until the processor time of a round is at least 100 milliseconds. On exit, the slong variable reps holds the number of repetitions of the last round and the timeit_t variable timer its time, which the caller divides by reps.
Cite this page
The FLINT team, “TIMEIT_REPEAT, TIMEIT_END_REPEAT (profiler.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/profiler/TIMEIT_REPEAT.html (generated 2026-10-20).
@misc{flint-doc-profiler-TIMEIT-REPEAT,
author = {{The FLINT team}},
title = {{TIMEIT\_REPEAT, TIMEIT\_END\_REPEAT (profiler.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/profiler/TIMEIT_REPEAT.html},
note = {Generated 2026-10-20}
}