Personally, I use gettimeofday() as it provides wall-clock time,
and has a fractional part accurate to the resolution of the clock
your machine supports. Just grab the time at the beginning, the
time at the end, and subtract...
Robert Hyatt Computer and Information Sciences
[EMAIL PROTECTED] University of Alabama at Birmingham
(205) 934-2213 115A Campbell Hall, UAB Station
(205) 934-5473 FAX Birmingham, AL 35294-1170
On Tue, 11 Jan 2000, PENETRAX.COM wrote:
> Hello,
>
> I am using an SMP machine as a work station, but this question really is
> not SMP centric. However, any help in resolving this problem would be
> greatly appreciated.
>
> I get this error message when I compile the code segment listed below:
>
> /tmp/ccj65yWX.o (.text+0xb): undefined reference to '_strtime'
>
> the code follows:
>
> #include <stdio.h>
> #include <time.h>
>
>
> int main ( void ) {
>
> char timebuf[9];
>
> _strtime ( timebuf );
> printf ("Time: s% \n", timebuf );
> return;
> }
>
> the compiler I'm using is:
>
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> Slackware 7 kernel version 2.2.13
>
> I'm pulling my hair out over what should be an obvious fix. Thanks
>
> -
> Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
> To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
>
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]