Diff for /gforth/prim between versions 1.260 and 1.262

version 1.260, 2011/11/21 19:05:01 version 1.262, 2011/12/02 22:06:13
Line 2036  dsystem = DZERO; Line 2036  dsystem = DZERO;
 ntime   ( -- dtime )    gforth  ntime   ( -- dtime )    gforth
 ""Report the current time in nanoseconds since some epoch.""  ""Report the current time in nanoseconds since some epoch.""
 struct timespec time1;  struct timespec time1;
   #ifdef HAVE_CLOCK_GETTIME
 clock_gettime(CLOCK_REALTIME,&time1);  clock_gettime(CLOCK_REALTIME,&time1);
   #else
   struct timeval time2;
   gettimeofday(&time2,NULL);
   time1.tv_sec = time2.tv_sec;
   time1.tv_nsec = time2.tv_usec*1000;
   #endif
 dtime = timespec2ns(&time1);  dtime = timespec2ns(&time1);
   
 \+  \+

Removed from v.1.260  
changed lines
  Added in v.1.262


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>