Skip to content

Fix elapsed time in solver statistics - #845

Open
23swccp wants to merge 1 commit into
coin-or:masterfrom
23swccp:fix/csv-elapsed-time
Open

23swccp wants to merge 1 commit into
coin-or:masterfrom
23swccp:fix/csv-elapsed-time

Conversation

@23swccp

@23swccp 23swccp commented Nov 6, 2026

Copy link
Copy Markdown

The elapsed field in the CSV statistics contains an absolute Unix timestamp instead of the elapsed wall-clock time.

For example, running:

cbc app1-1.mps -solve -writeStatistics stats.csv

produced an elapsed value of 1793940566.54,it looks like a tiomestamp, although the solve took only a few seconds.

just take the difference of CoinWallclockTime() and time1Elapsed can fix it.

  • Before: elapsed = 1793940566.54
before-excel
  • After: elapsed = 4.34
after-excel

@CLAassistant

CLAassistant commented Nov 6, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@tkralphs
tkralphs requested a review from jjhforrest November 6, 2026 18:51

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants