From 86dd2413455857c9ccceff26ccf9011bc39373bf Mon Sep 17 00:00:00 2001 From: Alexandre Jesus Date: Fri, 16 Sep 2016 01:46:22 +0100 Subject: Add csv info to print front --- src/common.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3