From: David Wells Date: Sun, 26 Aug 2018 20:07:18 +0000 (-0400) Subject: step-37: Time the output writing stage. X-Git-Tag: v9.1.0-rc1~756^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab35555676ba453822a8147c4e6b5b155d47fc7;p=dealii.git step-37: Time the output writing stage. --- diff --git a/examples/step-37/step-37.cc b/examples/step-37/step-37.cc index 7cad25fb3c..568249a4a8 100644 --- a/examples/step-37/step-37.cc +++ b/examples/step-37/step-37.cc @@ -1142,6 +1142,7 @@ namespace Step37 template void LaplaceProblem::output_results(const unsigned int cycle) const { + Timer time; if (triangulation.n_global_active_cells() > 1000000) return; @@ -1175,6 +1176,9 @@ namespace Step37 std::ofstream master_output(master_name); data_out.write_pvtu_record(master_output, filenames); } + + time_details << "Time write output (CPU/wall) " << time.cpu_time() + << "s/" << time.wall_time() << "s\n"; }