3 #include <polylib/polylibgmp.h>
8 #ifdef HAVE_GROWING_CHERNIKOVA
14 static void time_diff(struct tms
*before
, struct tms
*after
)
16 long ticks
= sysconf(_SC_CLK_TCK
);
17 printf("User: %g; Sys: %g\n",
18 (0.0 + after
->tms_utime
- before
->tms_utime
) / ticks
,
19 (0.0 + after
->tms_stime
- before
->tms_stime
) / ticks
);
25 struct tms tms_before
, tms_between
, tms_after
;
30 A
= Constraints2Polyhedron(M
, MAXRAYS
);
34 Polyhedron_Print(stdout
, P_VALUE_FMT
, A
);
38 barvinok_count(A
, &cb
, 100);
41 value_print(stdout
, P_VALUE_FMT
, cm
);
43 time_diff(&tms_before
, &tms_between
);
45 value_print(stdout
, P_VALUE_FMT
, cb
);
47 time_diff(&tms_between
, &tms_after
);