Update sparsegraphgen.cpp

Added run time computation