Ardour  9.0-pre0-582-g084a23a80d
timersub.h File Reference
#include <sys/time.h>
Include dependency graph for timersub.h:

Go to the source code of this file.

Macros

#define timersub(a, b, result)
 

Macro Definition Documentation

◆ timersub

#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 24 of file timersub.h.