PAKFIRE_EXPORT int pakfire_transaction_solve(struct pakfire_transaction* transaction,
int flags, char** problems) {
+ clock_t solving_start;
+ clock_t solving_end;
char* p = NULL;
int solved = 0;
int r;
RETRY:
// Save time when we starting solving
- clock_t solving_start = clock();
+ solving_start = clock();
// Solve the request and get the number of problems
r = solver_solve(transaction->solver, &transaction->jobs);
// Save time when we finished solving
- clock_t solving_end = clock();
+ solving_end = clock();
DEBUG(transaction->pakfire, "Solved request in %.4fms\n",
(double)(solving_end - solving_start) * 1000 / CLOCKS_PER_SEC);