You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.h 282B

123456789101112
  1. #ifndef COMMON_H
  2. #define COMMON_H
  3. #define _POSIX_C_SOURCE 199309L
  4. #include <time.h>
  5. struct timespec get_time();
  6. struct timespec time_diff(struct timespec* ts1, struct timespec* ts2);
  7. struct timespec get_duration(struct timespec* ts);
  8. void print_time(struct timespec* ts);
  9. #endif