--- multiplexer/global.c 2001/04/03 21:14:33 1.3 +++ multiplexer/global.c 2001/04/09 15:26:03 1.4 @@ -22,6 +22,11 @@ long logtpc; timepoll *ltp; #endif +/* Provide the present system time in relative milliseconds. + * The zero point may be moved as unconditional waiting is proposed + * in the dispatcher, but timed_io=FALSE. + * Return: milliseconds + */ t_msec msec_now (void) { #define MSEC_EXPONENT 21 @@ -48,6 +53,9 @@ t_msec msec_now (void) return (now + global_delta); } +/* Convert a clock reference value (90kHz) to millisenconds, + * using a conversion base to avoid wrap around errors. + */ void cref2msec (conversion_base *b, clockref c, t_msec *m) @@ -70,6 +78,9 @@ void cref2msec (conversion_base *b, *m = (d / 90) + b->msec; } +/* Convert milliseconds to a clock reference value (90kHz), + * using a conversion base to avoid wrap around errors. + */ void msec2cref (conversion_base *b, t_msec m, clockref *c)