[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system time command with millisecond for Etrax 100LX-linux 2.0.38



Hi,
Alternatively, would it be possible for someone to compile the few lines
below for an Etrax 100 LX and linux 2.0.38 and sent the binary back to me?
Thank you,
PhilB

/*----*/
#include <stdio.h>
#include <sys/time.h>

main(argc, argv)
    int argc;
    char *argv[];
{
struct timeval curr_timeval;
gettimeofday(&curr_timeval,NULL);
fprintf(stdout,"%d.%d\n",curr_timeval.tv_sec,curr_timeval.tv_usec);
}

/*----*/