diff options
author | Alexandre Jesus <adbjesus@gmail.com> | 2016-09-16 01:46:22 +0100 |
---|---|---|
committer | Alexandre Jesus <adbjesus@gmail.com> | 2016-09-16 01:46:22 +0100 |
commit | 86dd2413455857c9ccceff26ccf9011bc39373bf (patch) | |
tree | e9a64474c55f0ac2f5f6b1949a8d12a5bf6b193b /src | |
parent | 8865d83090d9820380af95bfdc121b42e60ac62f (diff) | |
download | libuknapsack-86dd2413455857c9ccceff26ccf9011bc39373bf.tar.gz libuknapsack-86dd2413455857c9ccceff26ccf9011bc39373bf.zip |
Add csv info to print front
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 2cfd44f..d736879 100644 --- a/src/common.c +++ b/src/common.c @@ -49,6 +49,8 @@ void print_data(struct data * d){ void print_front(struct front_item * b){ struct front_item * beg = b; + + printf("Profit, Weight, Time\n"); while(b!=NULL){ clock_t t = b->time - beg->time; printf("%.02f,\t%.02f,\t%f\n", b->i.p, b->i.w, ((double)t)/CLOCKS_PER_SEC); |