FLINT3.7.0-dev

TIMEIT_REPEAT, TIMEIT_END_REPEAT

Synopsis#include <flint/profiler.h>
TIMEIT_REPEAT(timer, reps)source
TIMEIT_END_REPEAT(timer, reps)source

Run 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).