Commit 22bdf624 by Alan Mishchenko

Adding a wrapper around clock() for more accurate time counting in ABC.

parent 19c25fd6
......@@ -268,7 +268,7 @@ static inline int Abc_Lit2LitL( int * pMap, int Lit ) { return Abc_LitNo
// time counting
typedef ABC_UINT64_T abctime;
typedef ABC_INT64_T abctime;
static inline abctime Abc_Clock()
{
static abctime PeriodNum = 0;
......
......@@ -1248,7 +1248,7 @@ abctime Saig_ManBmcTimeToStop( Saig_ParBmc_t * pPars, abctime nTimeToStopNG )
abctime nTimeToStopGap = pPars->nTimeOutGap ? pPars->nTimeOutGap * CLOCKS_PER_SEC + Abc_Clock(): 0;
abctime nTimeToStop = 0;
if ( nTimeToStopNG && nTimeToStopGap )
nTimeToStop = Abc_MinInt( nTimeToStopNG, nTimeToStopGap );
nTimeToStop = nTimeToStopNG < nTimeToStopGap ? nTimeToStopNG : nTimeToStopGap;
else if ( nTimeToStopNG )
nTimeToStop = nTimeToStopNG;
else if ( nTimeToStopGap )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment