sc/perf/perf_example.c
Ozan Tezcan 53d4a9158a
Fix compiler warnings (#95)
Fix compiler warnings
2022-08-20 18:56:21 +03:00

23 lines
300 B
C

#include "sc_perf.h"
#include <stdlib.h>
int main(void)
{
size_t total = 0;
sc_perf_start();
for (int i = 0; i < 100000000; i++) {
total += (rand() % 331) ^ 33;
}
sc_perf_pause();
for (int i = 0; i < 100000000; i++) {
total += (rand() % 327) ^ 37;
}
sc_perf_end();
return total;
}