From 19c25fd6aab057b2373717f996fe538507c1b1e1 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 27 May 2013 15:09:23 -0700 Subject: Adding a wrapper around clock() for more accurate time counting in ABC. --- src/base/abci/abcDec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/abci/abcDec.c') diff --git a/src/base/abci/abcDec.c b/src/base/abci/abcDec.c index d232d5aa..57a17ffe 100644 --- a/src/base/abci/abcDec.c +++ b/src/base/abci/abcDec.c @@ -464,7 +464,7 @@ void Abc_TtStoreTest( char * pFileName ) ***********************************************************************/ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose ) { - clock_t clk = clock(); + abctime clk = Abc_Clock(); int i, nNodes = 0; char * pAlgoName = NULL; @@ -556,7 +556,7 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose ) else assert( 0 ); printf( "AIG nodes =%9d ", nNodes ); - Abc_PrintTime( 1, "Time", clock() - clk ); + Abc_PrintTime( 1, "Time", Abc_Clock() - clk ); } /**Function************************************************************* -- cgit v1.2.3