#ifndef delay_h #define delay_h #define VERSIONDATE "July 8, 2000" #define MAXNUMBEROFLOOPS 8 #define BASICDELAY 10 //maximum delay without loops #undef SHOW_BANNER void ReportError(char Err); void logRequest(); void logPrint(FILE* log, char* envName); void printForm(); void TimeStamp(); void Banner(); void helpScreen(); void extractRegs(string& buf, LISTSTR& Regs, string& newPrefix); void lowercaseString(string& m); void stripBlanks(string& buf); void generateDelay(); double delayInCycles(); double delayInCyclesOld(); void adjustCounters(int* counters, int loops, double cycles); double calculateDelay(int* counters, int loops); double maximumDelay(int loops); void findGradient(double* gradient, int* counters, int loops); int findMin(double* gradient, int loops, int offset); int findMax(double* gradient, int loops, int offset); double generateSubDelay(double cycles, string label); void printLinkBack(); #endif