aboutsummaryrefslogtreecommitdiff
path: root/include/lib/time.h
blob: 1adf42859bf9b71a7ce3c47400b175159edd7e9f (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(const struct timespec *time1, const struct timespec *time0);

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

#endif