summaryrefslogtreecommitdiffstats
path: root/include/structs.h
diff options
context:
space:
mode:
authorAlexandre Jesus <adbjesus@gmail.com>2016-09-16 01:15:07 +0100
committerAlexandre Jesus <adbjesus@gmail.com>2016-09-16 01:15:07 +0100
commit80b7a8116d821aeae489086a403a6cdfd64d801a (patch)
treeb362305db5c3d0b91e0714cb7fa29c2de8570e43 /include/structs.h
parentd8ea8dc5fa670477cb6a3c64a9fe7dbbb0c44898 (diff)
downloadlibuknapsack-80b7a8116d821aeae489086a403a6cdfd64d801a.tar.gz
libuknapsack-80b7a8116d821aeae489086a403a6cdfd64d801a.zip
Add time measure
Diffstat (limited to 'include/structs.h')
-rw-r--r--include/structs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/structs.h b/include/structs.h
index cb1bca9..3b5c550 100644
--- a/include/structs.h
+++ b/include/structs.h
@@ -1,5 +1,8 @@
#ifndef _STRUCTS_H
#define _STRUCTS_H
+
+#include <time.h>
+
struct item {
double p;
double w;
@@ -16,5 +19,6 @@ struct front_item {
struct item i;
struct front_item * next;
struct front_item * prev;
+ clock_t time;
};
#endif