tvp 77 include/sys/time.h #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 tvp 78 include/sys/time.h #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) tvp 79 include/sys/time.h #define timercmp(tvp, uvp, cmp) \ tvp 80 include/sys/time.h (((tvp)->tv_sec == (uvp)->tv_sec) ? \ tvp 81 include/sys/time.h ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ tvp 82 include/sys/time.h ((tvp)->tv_sec cmp (uvp)->tv_sec)) tvp 76 usr/sample/tetris/input.c rwait(struct timeval *tvp) tvp 82 usr/sample/tetris/input.c if (tvp) { tvp 84 usr/sample/tetris/input.c endtv = *tvp; tvp 85 usr/sample/tetris/input.c timeout = tvp->tv_usec / 1000; tvp 100 usr/sample/tetris/input.c if (tvp == NULL) tvp 103 usr/sample/tetris/input.c tvp->tv_sec = 0; tvp 104 usr/sample/tetris/input.c tvp->tv_usec = 0; tvp 108 usr/sample/tetris/input.c if (tvp) { tvp 112 usr/sample/tetris/input.c TV_SUB(tvp, &endtv); /* adjust *tvp by elapsed time */