This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#define PRINT_INTERVAL 1000 /* in milliseconds */ | |
#define MILLI 0 | |
#define MICRO 1 | |
#define NANO 2 | |
#define RESOLUTION MILLI | |
long diff_nano(struct timespec *start, struct timespec *end) |