Return to prim CVS log | Up to [gforth] / gforth |
version 1.259, 2011/11/21 01:37:12 | version 1.260, 2011/11/21 19:05:01 |
---|---|
Line 2035 dsystem = DZERO; | Line 2035 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 t; | struct timespec time1; |
clock_gettime(CLOCK_REALTIME,&t); | clock_gettime(CLOCK_REALTIME,&time1); |
dtime = timespec2ns(&t); | dtime = timespec2ns(&time1); |
\+ | \+ |