From 61b3da6c72907db2843caf3988d29baa0f8231a6 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 9 Nov 2001 11:20:21 +0000 Subject: [PATCH] mesh cpu time option --- Common/DefaultOptions.h | 2 ++ Common/Options.cpp | 7 ++++++- Common/Options.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index 685474438e..dbfb44a36b 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -437,6 +437,8 @@ StringXNumber MeshOptions_Number[] = { "Number of prisms in the current mesh" }, { F, "NbPyramids" , opt_mesh_nb_pyramids , 0. , "Number of pyramids in the current mesh" }, + { F, "CpuTime" , opt_mesh_cpu_time , 0. , + "CPU time for the generation of the current mesh (in seconds)" }, { 0, NULL , NULL , 0. , NULL } } ; diff --git a/Common/Options.cpp b/Common/Options.cpp index 95f32fd55d..1c53dbf8df 100644 --- a/Common/Options.cpp +++ b/Common/Options.cpp @@ -1,4 +1,4 @@ -// $Id: Options.cpp,v 1.56 2001-11-07 08:04:30 geuzaine Exp $ +// $Id: Options.cpp,v 1.57 2001-11-09 11:20:21 geuzaine Exp $ #include "Gmsh.h" #include "GmshUI.h" @@ -1631,6 +1631,11 @@ double opt_mesh_nb_pyramids(OPT_ARGS_NUM){ GetStatistics(s); return s[12]; } +double opt_mesh_cpu_time(OPT_ARGS_NUM){ + double s[50]; + GetStatistics(s); + return s[13]+s[14]+s[15]; +} diff --git a/Common/Options.h b/Common/Options.h index eb6337a0aa..f001f569ef 100644 --- a/Common/Options.h +++ b/Common/Options.h @@ -205,6 +205,7 @@ double opt_mesh_nb_tetrahedra(OPT_ARGS_NUM); double opt_mesh_nb_hexahedra(OPT_ARGS_NUM); double opt_mesh_nb_prisms(OPT_ARGS_NUM); double opt_mesh_nb_pyramids(OPT_ARGS_NUM); +double opt_mesh_cpu_time(OPT_ARGS_NUM); double opt_solver_getdp_popupmessages(OPT_ARGS_NUM); double opt_solver_getdp_mergeviews(OPT_ARGS_NUM); double opt_post_scales(OPT_ARGS_NUM); -- GitLab