| 182 | "}\n"; |
| 183 | |
| 184 | static double elapsed_ms(struct timespec t0, struct timespec t1) { |
| 185 | double s = (double)(t1.tv_sec - t0.tv_sec); |
| 186 | double ns = (double)(t1.tv_nsec - t0.tv_nsec); |
| 187 | return s * 1000.0 + ns / 1000000.0; |
| 188 | } |
| 189 | |
| 190 | TEST(cslsp_bench_resolution_ratio) { |
| 191 | /* Perf benchmark: time-budgeted. Under ASan+UBSan the budget is scaled |