mirror of https://github.com/YosysHQ/abc.git
Adding a wrapper around clock() for more accurate time counting in ABC.
This commit is contained in:
parent
19c25fd6aa
commit
22bdf62465
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in New Issue