Mail Archives: djgpp/1995/02/28/10:04:06
> 
> Hi there,
> i use djgpp 1.12.m3.
> if i use in C++
>    #include <time.h>
>    ...
>    clock_t clock(void);
>    clock_t start = clock();
> i get a linker error
>    undefined reference to 'clock(void)'
> 
> However
>    #include <time.h>
>    ...
>    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)
- Raw text -