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/cmd/cmdStarter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/cmd/cmdStarter.c') diff --git a/src/base/cmd/cmdStarter.c b/src/base/cmd/cmdStarter.c index bfdd480c..16810baa 100644 --- a/src/base/cmd/cmdStarter.c +++ b/src/base/cmd/cmdStarter.c @@ -111,7 +111,7 @@ void Cmd_RunStarter( char * pFileName, char * pBinary, char * pCommand, int nCor char * BufferCopy, * Buffer; int nLines, LineMax, Line, Len; int i, c, status, Counter; - clock_t clk = clock(); + abctime clk = Abc_Clock(); // check the number of cores if ( nCores < 2 ) @@ -244,7 +244,7 @@ void Cmd_RunStarter( char * pFileName, char * pBinary, char * pCommand, int nCor // status = pthread_mutex_destroy(&mutex); assert(status == 0); // mutex = PTHREAD_MUTEX_INITIALIZER; fprintf( stdout, "Finished processing commands in file \"%s\". ", pFileName ); - Abc_PrintTime( 1, "Total wall time", clock() - clk ); + Abc_PrintTime( 1, "Total wall time", Abc_Clock() - clk ); fflush( stdout ); } -- cgit v1.2.3