Skip to content

Commit

Permalink
Merge pull request #183 from michael-emmi/restore-total-user-time
Browse files Browse the repository at this point in the history
Restore TotalUserTime field removed by 714d5a0.
  • Loading branch information
michael-emmi authored Jan 2, 2020
2 parents d9d8730 + b935a44 commit c1c61af
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Source/Provers/SMTLib/SMTLibProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,21 @@ public SExpr GetProverResponse()
}
}


// NOTE: this field is used by Corral.
// https://github.com/boogie-org/corral/blob/master/source/Driver.cs
public static System.TimeSpan TotalUserTime = System.TimeSpan.Zero;

public void Close()
{
try {
TotalUserTime += prover.UserProcessorTime;
} catch (Exception e) {
if (options.Verbosity >= 1) {
Console.Error.WriteLine("Warning: prover time not incremented due to {0}", e.GetType());
}
}

TerminateProver();
DisposeProver();
}
Expand Down Expand Up @@ -394,4 +407,3 @@ void prover_ErrorDataReceived(object sender, DataReceivedEventArgs e)
#endregion
}
}

0 comments on commit c1c61af

Please sign in to comment.