3 #include <polylib/polylibgmp.h>
7 static void time_diff(struct tms
*before
, struct tms
*after
)
9 long ticks
= sysconf(_SC_CLK_TCK
);
10 printf("User: %g; Sys: %g\n",
11 (0.0 + after
->tms_utime
- before
->tms_utime
) / ticks
,
12 (0.0 + after
->tms_stime
- before
->tms_stime
) / ticks
);
18 struct tms tms_before
, tms_between
, tms_after
;
23 A
= Constraints2Polyhedron(M
, 600);
27 Polyhedron_Print(stdout
, P_VALUE_FMT
, A
);
31 barvinok_count(A
, &cb
, 100);
34 value_print(stdout
, P_VALUE_FMT
, cm
);
36 time_diff(&tms_before
, &tms_between
);
38 value_print(stdout
, P_VALUE_FMT
, cb
);
40 time_diff(&tms_between
, &tms_after
);