Home
last modified time | relevance | path

Searched refs:timedFnState (Results 1 – 2 of 2) sorted by relevance

/external/zstd/programs/
Dbenchfn.c184 void BMK_resetTimedFnState(BMK_timedFnState_t* timedFnState, unsigned total_ms, unsigned run_ms) in BMK_resetTimedFnState() argument
189 timedFnState->timeSpent_ns = 0; in BMK_resetTimedFnState()
190 timedFnState->timeBudget_ns = (PTime)total_ms * TIMELOOP_NANOSEC / 1000; in BMK_resetTimedFnState()
191 timedFnState->runBudget_ns = (PTime)run_ms * TIMELOOP_NANOSEC / 1000; in BMK_resetTimedFnState()
192timedFnState->fastestRun.nanoSecPerRun = (double)TIMELOOP_NANOSEC * 2000000000; /* hopefully larg… in BMK_resetTimedFnState()
193 timedFnState->fastestRun.sumOfReturn = (size_t)(-1LL); in BMK_resetTimedFnState()
194 timedFnState->nbLoops = 1; in BMK_resetTimedFnState()
195 timedFnState->coolTime = UTIL_getTime(); in BMK_resetTimedFnState()
200 int BMK_isCompleted_TimedFn(const BMK_timedFnState_t* timedFnState) in BMK_isCompleted_TimedFn() argument
202 return (timedFnState->timeSpent_ns >= timedFnState->timeBudget_ns); in BMK_isCompleted_TimedFn()
Dbenchfn.h146 BMK_runOutcome_t BMK_benchTimedFn(BMK_timedFnState_t* timedFnState,
151 int BMK_isCompleted_TimedFn(const BMK_timedFnState_t* timedFnState);
159 void BMK_resetTimedFnState(BMK_timedFnState_t* timedFnState, unsigned total_ms, unsigned run_ms);