#include #include "rondoudou_patch2.h" #include "time.h" void f() { cipher; print_log("Dans f\n"); decipher; } void g(int a) { cipher; print_log("Dans g(%d)\n", a); decipher; } int h(int a) { cipher; print_log("Dans h(%d)\n", a); if (a > 0) { int ret = h(a - 1); decipher; return ret; } change_key(15165314561313153217ul); decipher; return 5; } int main() { struct timespec start, end; clock_gettime(CLOCK_MONOTONIC, &start); cipher; for (int i = 0; i < 1000; ++i) { h(25); } decipher; clock_gettime(CLOCK_MONOTONIC, &end); unsigned long ns = (end.tv_sec - start.tv_sec) * 1000000000ul + end.tv_nsec - start.tv_nsec; printf("%.3lfμs\n", (double) ns / 1000.0); return 0; }