summaryrefslogtreecommitdiffstats
path: root/src/opt/nwk/nwkMerge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt/nwk/nwkMerge.c')
-rw-r--r--src/opt/nwk/nwkMerge.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/opt/nwk/nwkMerge.c b/src/opt/nwk/nwkMerge.c
index c913e0d1..3e458a06 100644
--- a/src/opt/nwk/nwkMerge.c
+++ b/src/opt/nwk/nwkMerge.c
@@ -704,14 +704,14 @@ int Nwk_ManLutMergeGraphTest( char * pFileName )
{
int nPairs;
Nwk_Grf_t * p;
- clock_t clk = clock();
+ abctime clk = Abc_Clock();
p = Nwk_ManLutMergeReadGraph( pFileName );
- ABC_PRT( "Reading", clock() - clk );
- clk = clock();
+ ABC_PRT( "Reading", Abc_Clock() - clk );
+ clk = Abc_Clock();
Nwk_ManGraphSolve( p );
printf( "GRAPH: Nodes = %6d. Edges = %6d. Pairs = %6d. ",
p->nVerts, p->nEdges, Vec_IntSize(p->vPairs)/2 );
- ABC_PRT( "Solving", clock() - clk );
+ ABC_PRT( "Solving", Abc_Clock() - clk );
nPairs = Vec_IntSize(p->vPairs)/2;
Nwk_ManGraphReportMemoryUsage( p );
Nwk_ManGraphFree( p );
@@ -975,7 +975,7 @@ Vec_Int_t * Nwk_ManLutMerge( Nwk_Man_t * pNtk, void * pParsInit )
Vec_Ptr_t * vStart, * vNext, * vCands1, * vCands2;
Nwk_Obj_t * pLut, * pCand;
int i, k, nVertsMax, nCands;
- clock_t clk = clock();
+ abctime clk = Abc_Clock();
// count the number of vertices
nVertsMax = 0;
Nwk_ManForEachNode( pNtk, pLut, i )
@@ -1015,16 +1015,16 @@ Vec_Int_t * Nwk_ManLutMerge( Nwk_Man_t * pNtk, void * pParsInit )
if ( pPars->fVerbose )
{
printf( "Mergable LUTs = %6d. Total cands = %6d. ", p->nVertsMax, nCands );
- ABC_PRT( "Deriving graph", clock() - clk );
+ ABC_PRT( "Deriving graph", Abc_Clock() - clk );
}
// solve the graph problem
- clk = clock();
+ clk = Abc_Clock();
Nwk_ManGraphSolve( p );
if ( pPars->fVerbose )
{
printf( "GRAPH: Nodes = %6d. Edges = %6d. Pairs = %6d. ",
p->nVerts, p->nEdges, Vec_IntSize(p->vPairs)/2 );
- ABC_PRT( "Solving", clock() - clk );
+ ABC_PRT( "Solving", Abc_Clock() - clk );
Nwk_ManGraphReportMemoryUsage( p );
}
vResult = p->vPairs; p->vPairs = NULL;