Skip to content
Snippets Groups Projects
Commit e5eceb3f authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on debug: printing time

parent 865d95ab
No related branches found
No related tags found
No related merge requests found
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <time.h>
#include "debug.h" #include "debug.h"
#define DEBUG_ON 1 #define DEBUG_ON 1
#define DEBUG_OFF 2 #define DEBUG_OFF 2
...@@ -65,3 +67,7 @@ void debugMsg(char *msg) { ...@@ -65,3 +67,7 @@ void debugMsg(char *msg) {
printf("DT> %s\n", msg); printf("DT> %s\n", msg);
} }
} }
void debugTime(struct timespec *ts) {
printf("DT> sec=%ld nsec=%ld", ts->tv_sec, ts->tv_nsec);
}
...@@ -11,6 +11,7 @@ void debugTwoInts(char *msg, int value1, int value2); ...@@ -11,6 +11,7 @@ void debugTwoInts(char *msg, int value1, int value2);
void debugLong(char *msg, long value); void debugLong(char *msg, long value);
void debugInt(char *msg, int value); void debugInt(char *msg, int value);
void debugMsg(char *msg); void debugMsg(char *msg);
void debugTime(struct timespec *ts);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment