Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

timersub.h File Reference

Go to the source code of this file.

Defines

#define TIMERSUB(a, b, result)


Define Documentation

#define TIMERSUB a,
b,
result   ) 
 

Value:

do {                                                                        \
    (result)->tv_sec = (a)->tv_sec - (b)->tv_sec;                             \
    (result)->tv_usec = (a)->tv_usec - (b)->tv_usec;                          \
    if ((result)->tv_usec < 0) {                                              \
      --(result)->tv_sec;                                                     \
      (result)->tv_usec += 1000000;                                           \
    }                                                                         \
  } while (0)

Definition at line 21 of file timersub.h.

Referenced by CheckTimeout(), CleanExit(), and RetransTooFast().


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2