--- gforth/engine/engine.c 2000/07/27 10:40:42 1.20 +++ gforth/engine/engine.c 2000/08/08 12:37:05 1.21 @@ -39,6 +39,7 @@ #include #include #include +#include #ifdef HAVE_FNMATCH_H #include #else @@ -169,6 +170,19 @@ char *tilde_cstr(Char *from, UCell size, } #endif +DCell timeval2us(struct timeval *tvp) +{ +#ifndef BUGGY_LONG_LONG + return (tvp->tv_sec*(DCell)1000000)+tvp->tv_usec; +#else + DCell d2; + DCell d1=mmul(tvp->tv_sec,1000000); + d2.lo = d1.lo+tvp->tv_usec; + d2.hi = d1.hi + (d2.lo