diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-05 20:01:04 +1000 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-05 20:01:04 +1000 |
| commit | 170921f8c21b498ed9a497c52931e72e791f2fd9 (patch) | |
| tree | 1c7e681a5b4bd1dea65de388931d4ac1ed9d9de8 /bench/bench.h | |
| parent | df61c616e7e639d5782599c65de44464c2c50367 (diff) | |
feat(png): add benchmark markers to png decoding
Diffstat (limited to 'bench/bench.h')
| -rw-r--r-- | bench/bench.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/bench/bench.h b/bench/bench.h index 9496df9..fc226d9 100644 --- a/bench/bench.h +++ b/bench/bench.h @@ -24,18 +24,15 @@ typedef struct { // These need to be inline so they are fast -static inline ff_bench ff_bench_start(const char* label) { - ff_bench b; - b.label = label; - b._start = clock(); - b._end = 0; - - // Markers - b._mcount = 0; - - return b; +static inline void ff_bench_start(ff_bench *b, const char* label) { + b->label = label; + b->_start = clock(); + b->_end = 0; + b->_mcount = 0; + } + static inline void ff_bench_end(ff_bench *b) { b->_end = clock(); } |
