Printing time taken for generating the graph