Searched refs:total_ms (Results 1 - 2 of 2) sorted by relevance

/freebsd-13-stable/sys/contrib/zstd/programs/
H A Dbenchfn.h141 * Note : minimum `nbLoops` is 1, therefore a run may last more than run_ms, and possibly even more than total_ms.
142 * Usage - initialize timedFnState, select benchmark duration (total_ms) and each measurement duration (run_ms)
149 /* Tells if duration of all benchmark runs has exceeded total_ms
155 * which shall last a minimum of total_ms milliseconds,
158 BMK_timedFnState_t* BMK_createTimedFnState(unsigned total_ms, unsigned run_ms);
159 void BMK_resetTimedFnState(BMK_timedFnState_t* timedFnState, unsigned total_ms, unsigned run_ms);
176 BMK_timedFnState_t* BMK_initStatic_timedFnState(void* buffer, size_t size, unsigned total_ms, unsigned run_ms);
H A Dbenchfn.c160 BMK_timedFnState_t* BMK_createTimedFnState(unsigned total_ms, unsigned run_ms) argument
164 BMK_resetTimedFnState(r, total_ms, run_ms);
171 BMK_initStatic_timedFnState(void* buffer, size_t size, unsigned total_ms, unsigned run_ms) argument
180 BMK_resetTimedFnState(r, total_ms, run_ms);
184 void BMK_resetTimedFnState(BMK_timedFnState_t* timedFnState, unsigned total_ms, unsigned run_ms) argument
186 if (!total_ms) total_ms = 1 ;
188 if (run_ms > total_ms) run_ms = total_ms;
190 timedFnState->timeBudget_ns = (PTime)total_ms * TIMELOOP_NANOSE
[all...]

Completed in 101 milliseconds