mirror of https://github.com/CGAL/cgal
Add timer
This commit is contained in:
parent
5db694c154
commit
e18f7037cf
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
|
#include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
|
||||||
#include <CGAL/make_mesh_3.h>
|
#include <CGAL/make_mesh_3.h>
|
||||||
|
#include <CGAL/Timer.h>
|
||||||
|
|
||||||
// Domain
|
// Domain
|
||||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||||
|
|
@ -47,6 +48,8 @@ int main(int argc, char*argv[])
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGAL::Timer t;
|
||||||
|
t.start();
|
||||||
// Create domain
|
// Create domain
|
||||||
Mesh_domain domain(polyhedron);
|
Mesh_domain domain(polyhedron);
|
||||||
|
|
||||||
|
|
@ -57,9 +60,9 @@ int main(int argc, char*argv[])
|
||||||
Mesh_criteria criteria(edge_size = 0.025,
|
Mesh_criteria criteria(edge_size = 0.025,
|
||||||
facet_angle = 25, facet_size = 0.05, facet_distance = 0.005,
|
facet_angle = 25, facet_size = 0.05, facet_distance = 0.005,
|
||||||
cell_radius_edge_ratio = 3, cell_size = 0.05);
|
cell_radius_edge_ratio = 3, cell_size = 0.05);
|
||||||
|
|
||||||
// Mesh generation
|
// Mesh generation
|
||||||
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
|
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
|
||||||
|
std::cerr << t.time() << " sec." << std::endl;
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
std::ofstream medit_file("out.mesh");
|
std::ofstream medit_file("out.mesh");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue