Updated densegraphgen.cpp

Added run time computation.