Diff for /gforth/prim between versions 1.258 and 1.261

version 1.258, 2011/10/18 13:13:53 version 1.261, 2011/12/02 21:59:09
Line 2033  duser = timeval2us(&time1); Line 2033  duser = timeval2us(&time1);
 dsystem = DZERO;  dsystem = DZERO;
 #endif  #endif
   
   ntime   ( -- dtime )    gforth
   ""Report the current time in nanoseconds since some epoch.""
   #ifdef HAVE_CLOCK_GETTIME
   struct timespec time1;
   clock_gettime(CLOCK_REALTIME,&time1);
   dtime = timespec2ns(&time1);
   #else
   struct timeval time1;
   gettimeofday(&time1,NULL);
   dtime = timeval2us(&time1) * 1000LL;
   #endif
   
 \+  \+
   
 \+floating  \+floating

Removed from v.1.258  
changed lines
  Added in v.1.261


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