aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
blob: 9d69b4437f3cfee1165251ed153be07682fd579d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef INC_LIB_TIME_H
#define INC_LIB_TIME_H

#include <time.h>

#define TIME(var) struct timespec var;get_time(&var)

// Difference in Time
// Compute the difference between timespec structs
double diff_time(struct timespec *time1, struct timespec *time0);

// Get Current Time
void get_time(struct timespec *ts);

#endif