summaryrefslogtreecommitdiffstats
path: root/src/proof/live/kliveness.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-05-27 15:09:23 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-05-27 15:09:23 -0700
commit19c25fd6aab057b2373717f996fe538507c1b1e1 (patch)
tree7aa7cd7609a5de31d11b3455b6388fd9300c8d0f /src/proof/live/kliveness.c
parent94356f0d1fa8e671303299717f631ecf0ca2f17e (diff)
downloadabc-19c25fd6aab057b2373717f996fe538507c1b1e1.tar.gz
abc-19c25fd6aab057b2373717f996fe538507c1b1e1.tar.bz2
abc-19c25fd6aab057b2373717f996fe538507c1b1e1.zip
Adding a wrapper around clock() for more accurate time counting in ABC.
Diffstat (limited to 'src/proof/live/kliveness.c')
-rw-r--r--src/proof/live/kliveness.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/proof/live/kliveness.c b/src/proof/live/kliveness.c
index 7ba67155..d9bc416b 100644
--- a/src/proof/live/kliveness.c
+++ b/src/proof/live/kliveness.c
@@ -534,7 +534,7 @@ int Abc_CommandCS_kLiveness( Abc_Frame_t * pAbc, int argc, char ** argv )
int directive = -1;
int c;
int safetyInvariantPO = -1;
- clock_t beginTime, endTime;
+ abctime beginTime, endTime;
double time_spent;
Vec_Ptr_t *vMasterBarrierDisjuncts = NULL;
Aig_Man_t *pWorkingAig;
@@ -606,9 +606,9 @@ int Abc_CommandCS_kLiveness( Abc_Frame_t * pAbc, int argc, char ** argv )
if(directive == kCS_WITH_DISCOVER_MONOTONE_SIGNALS)
{
- beginTime = clock();
+ beginTime = Abc_Clock();
vMasterBarrierDisjuncts = findDisjunctiveMonotoneSignals( pNtk );
- endTime = clock();
+ endTime = Abc_Clock();
time_spent = (double)(endTime - beginTime)/CLOCKS_PER_SEC;
printf("pre-processing time = %f\n",time_spent);
return 0;
@@ -619,9 +619,9 @@ int Abc_CommandCS_kLiveness( Abc_Frame_t * pAbc, int argc, char ** argv )
safetyInvariantPO = collectSafetyInvariantPOIndex(pNtkTemp);
assert( safetyInvariantPO != -1 );
- beginTime = clock();
+ beginTime = Abc_Clock();
vMasterBarrierDisjuncts = findDisjunctiveMonotoneSignals( pNtk );
- endTime = clock();
+ endTime = Abc_Clock();
time_spent = (double)(endTime - beginTime)/CLOCKS_PER_SEC;
printf("pre-processing time = %f\n",time_spent);
@@ -634,9 +634,9 @@ int Abc_CommandCS_kLiveness( Abc_Frame_t * pAbc, int argc, char ** argv )
safetyInvariantPO = collectSafetyInvariantPOIndex(pNtkTemp);
assert( safetyInvariantPO != -1 );
- beginTime = clock();
+ beginTime = Abc_Clock();
vMasterBarrierDisjuncts = collectUserGivenDisjunctiveMonotoneSignals( pNtk );
- endTime = clock();
+ endTime = Abc_Clock();
time_spent = (double)(endTime - beginTime)/CLOCKS_PER_SEC;
printf("pre-processing time = %f\n",time_spent);