| 158 | }; /* typedef'd to BMK_timedFnState_t within bench.h */ |
| 159 | |
| 160 | BMK_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 | |
| 168 | void BMK_freeTimedFnState(BMK_timedFnState_t* state) { free(state); } |
| 169 |
no test coverage detected