send time in events

this calls clock_gettime for each active T macro, hopefully it
does not eat too much CPU

can be deactivated by commenting one line in T_defs.h
This commit is contained in:
Cedric Roux
2016-05-11 18:26:30 +02:00
parent 3e38cd2651
commit aacb2ff7c2
3 changed files with 33 additions and 0 deletions
+3
View File
@@ -1,6 +1,9 @@
#ifndef _T_defs_H_
#define _T_defs_H_
/* comment (and recompile everything) to not send time in events */
#define T_SEND_TIME
/* maximum number of arguments for the T macro */
#define T_MAX_ARGS 16