| 9 | #include <time.h> |
| 10 | |
| 11 | static double elapsed_ms(struct timespec t0, struct timespec t1) { |
| 12 | double s = (double)(t1.tv_sec - t0.tv_sec); |
| 13 | double ns = (double)(t1.tv_nsec - t0.tv_nsec); |
| 14 | return s * 1000.0 + ns / 1000000.0; |
| 15 | } |
| 16 | |
| 17 | /* Build N synthetic class/call pairs into an arena-backed buffer. */ |
| 18 | static char *build_fixture(int n_classes, int *out_len) { |