summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-14 04:14:51 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-14 04:14:51 +0000
commit99fad97e6f9b2883d44601427389fb801b3e8de5 (patch)
treeb3f3bcf3c7cae10f50246385387528bce33d5850
parent1c42c325dafb487fa554dc8b93e05780bd47662c (diff)
-- Finally remove all stop watch code
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@28 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r--emfloat.h12
-rw-r--r--nbench1.h5
-rw-r--r--sysspec.c47
-rw-r--r--sysspec.h9
4 files changed, 0 insertions, 73 deletions
diff --git a/emfloat.h b/emfloat.h
index 2761ae5..59dc809 100644
--- a/emfloat.h
+++ b/emfloat.h
@@ -124,15 +124,3 @@ static void DivideInternalFPF(InternalFPF *x,InternalFPF *y,
/* static void LongToInternalFPF(long mylong, */
static void Int32ToInternalFPF(int32_t mylong,
InternalFPF *dest);
-#ifdef DEBUG
-static int InternalFPFToString(char *dest,
- InternalFPF *src);
-#endif
-
-/*
-** EXTERNALS
-*/
-extern unsigned long StartStopwatch();
-extern unsigned long StopStopwatch(unsigned long elapsed);
-/* extern long randwc(long num); */
-extern int32_t randwc(int32_t num);
diff --git a/nbench1.h b/nbench1.h
index 4cc8465..40ee60f 100644
--- a/nbench1.h
+++ b/nbench1.h
@@ -38,8 +38,3 @@ extern IDEAStruct global_ideastruct;
extern HuffStruct global_huffstruct;
extern NNetStruct global_nnetstruct;
extern LUStruct global_lustruct;
-
-extern unsigned long StartStopwatch();
-extern unsigned long StopStopwatch(unsigned long startticks);
-extern unsigned long TicksToSecs(unsigned long tickamount);
-extern double TicksToFracSecs(unsigned long tickamount);
diff --git a/sysspec.c b/sysspec.c
index 73b74fb..9449ad5 100644
--- a/sysspec.c
+++ b/sysspec.c
@@ -252,50 +252,3 @@ if(writecode==nelems)
*errorcode=ERROR_FILEWRITE;
}
-
-/*****************************
-** STOPWATCH ROUTINES **
-*****************************/
-
-/****************************
-** StartStopwatch
-** Starts a software stopwatch. Returns the first value of
-** the stopwatch in ticks.
-*/
-unsigned long StartStopwatch()
-{
-return((unsigned long)clock());
-}
-
-/****************************
-** StopStopwatch
-** Stops the software stopwatch. Expects as an input argument
-** the stopwatch start time.
-*/
-unsigned long StopStopwatch(unsigned long startticks)
-{
-
-return((unsigned long)clock()-startticks);
-}
-
-/****************************
-** TicksToSecs
-** Converts ticks to seconds. Converts ticks to integer
-** seconds, discarding any fractional amount.
-*/
-unsigned long TicksToSecs(unsigned long tickamount)
-{
-return((unsigned long)(tickamount/CLOCKS_PER_SEC));
-}
-
-/****************************
-** TicksToFracSecs
-** Converts ticks to fractional seconds. In other words,
-** this returns the exact conversion from ticks to
-** seconds.
-*/
-double TicksToFracSecs(unsigned long tickamount)
-{
-return((double)tickamount/(double)CLOCKS_PER_SEC);
-}
-
diff --git a/sysspec.h b/sysspec.h
index 8d49640..89aa3ad 100644
--- a/sysspec.h
+++ b/sysspec.h
@@ -79,12 +79,3 @@ void writefile(FILE *fhandle,
unsigned long nbytes,
void *buffer,
int *errorcode);
-
-unsigned long StartStopwatch();
-
-unsigned long StopStopwatch(unsigned long startticks);
-
-unsigned long TicksToSecs(unsigned long tickamount);
-
-double TicksToFracSecs(unsigned long tickamount);
-