From: kunst AT prl DOT philips DOT nl Subject: Re: clock() not implemented? To: Wilhelm AT bwl DOT bwl DOT th-darmstadt DOT de Date: Tue, 28 Feb 1995 15:37:51 +0100 (MET) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list) > > Hi there, > i use djgpp 1.12.m3. > if i use in C++ > #include > ... > clock_t clock(void); > clock_t start = clock(); > i get a linker error > undefined reference to 'clock(void)' > > However > #include > ... > time_t time(time_t *); > time_t start = time(0); > works fine. > > But I need CPU-time in more detail. with best regards > clock() *is* implemented! (1) Try linking with '-lpc'. (2) Get hrtimer.c (if you need microsecond resolution) from the DJGPP mailing list archives (ask Turnbull San or see faq100.zip). Regards, Pieter Kunst (kunst AT prl DOT philips DOT nl)