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

This commit is contained in:
Alan Mishchenko 2013-05-27 15:14:42 -07:00
parent 19c25fd6aa
commit 22bdf62465
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 )