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

Function BMK_createTimedFnState

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

Source from the content-addressed store, hash-verified

158}; /* typedef'd to BMK_timedFnState_t within bench.h */
159
160BMK_timedFnState_t* BMK_createTimedFnState(unsigned total_ms, unsigned run_ms)
161{
162 BMK_timedFnState_t* const r = (BMK_timedFnState_t*)malloc(sizeof(*r));
163 if (r == NULL) return NULL; /* malloc() error */
164 BMK_resetTimedFnState(r, total_ms, run_ms);
165 return r;
166}
167
168void BMK_freeTimedFnState(BMK_timedFnState_t* state) { free(state); }
169

Callers 1

BMK_benchMemAdvancedFunction · 0.85

Calls 2

mallocFunction · 0.85
BMK_resetTimedFnStateFunction · 0.85

Tested by

no test coverage detected