Skip to content
Snippets Groups Projects
Commit 61b3da6c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

mesh cpu time option

parent 9d6c077b
No related branches found
No related tags found
No related merge requests found
......@@ -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 }
} ;
......
// $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];
}
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment