MCPcopy Create free account
hub / github.com/F-Stack/f-stack / BMK_isCompleted_TimedFn

Function BMK_isCompleted_TimedFn

freebsd/contrib/zstd/programs/benchfn.c:200–203  ·  view source on GitHub ↗

Tells if nb of seconds set in timedFnState for all runs is spent. * note : this function will return 1 if BMK_benchFunctionTimed() has actually errored. */

Source from the content-addressed store, hash-verified

198/* Tells if nb of seconds set in timedFnState for all runs is spent.
199 * note : this function will return 1 if BMK_benchFunctionTimed() has actually errored. */
200int BMK_isCompleted_TimedFn(const BMK_timedFnState_t* timedFnState)
201{
202 return (timedFnState->timeSpent_ns >= timedFnState->timeBudget_ns);
203}
204
205
206#undef MIN

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected