diff --git a/time.cpp b/time.cpp deleted file mode 100644 index a801003..0000000 --- a/time.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include - -#include -#include - -void errExit(const char *msg){ - printf("ERROR: %s",msg); - exit(1); -} - -static void displayProcessTimes(const char *msg){ - struct tms t; - clock_t clockTime; - static long clockTicks = 0; - - if(msg != NULL) - printf("%s",msg); - - if(clockTicks==0){ - clockTicks=sysconf(_SC_CLK_TCK); - - if(clockTicks==-1) errExit("sysconf"); - } - - clockTime=clock(); - if(clockTime==-1) errExit("clockTime"); - - printf("clock() returns %ld clocks-per-sec (%.2f secs)\n",(long) clockTime,(double) clockTime); -}; - -int main(int argc,char* argv[], char* env[]){ - printf("Kie kie\n"); - -} \ No newline at end of file