From 8ab35555676ba453822a8147c4e6b5b155d47fc7 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 26 Aug 2018 16:07:18 -0400 Subject: [PATCH] step-37: Time the output writing stage. --- examples/step-37/step-37.cc | 4 ++++ 1 file changed, 4 insertions(+) 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"; } -- 2.39.5