added time to output in c++