vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

ftime.c (248B)


      1 #include <time.h>
      2 #include <sys/time.h>
      3 #include <sys/timeb.h>
      4 
      5 int ftime(struct timeb *tb)
      6 {
      7 	struct timeval tv;
      8 	gettimeofday(&tv, NULL);
      9 	tb->time = tv.tv_sec;
     10 	tb->millitm = tv.tv_usec / 1000;
     11 	tb->timezone = 0;
     12 	tb->dstflag = 0;
     13 	return 0;
     14 }
     15