dts_t *deltas = NULL;
int nb_measurements = 0;
-char *message = "Clock accurency";
+char *message = "Clock accuracy";
void (*usage_ext) (FILE *) = NULL;
int (*parse_arg_ext) (char *) = NULL;
;;
*)
case "$*" in
- "Clock accurency") test=clock;;
+ "Clock accuracy") test=clock;;
"Cycle latency") test=cycle;;
"Message queue latency") test=mq_lat;;
"Mutex latency") test=mutex;;
typedef struct timespec ts_t;
-typedef unsigned int dts_t;
+typedef long int dts_t;
#define sys_timestamp(ts) clock_gettime (CLOCK_REALTIME, (ts))
FILE *fd = fopen (output, "w");
assert (fd);
for (int i = 0; i < nb; i++) {
- fprintf (fd, "%d\n", buffer[i]);
+ fprintf (fd, "%ld\n", buffer[i]);
}
fclose (fd);
}