alphashapes3d.cpp measures persistence time dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Tue, 01 Dec 2009 20:34:31 -0800
branchdev
changeset 176 64177e8ef379
parent 175 6a649c2bea0e
child 177 b5f2e93fa75c
alphashapes3d.cpp measures persistence time
examples/alphashapes/alphashapes3d.cpp
--- a/examples/alphashapes/alphashapes3d.cpp	Sat Nov 28 17:01:52 2009 -0800
+++ b/examples/alphashapes/alphashapes3d.cpp	Tue Dec 01 20:34:31 2009 -0800
@@ -1,4 +1,5 @@
 #include <utilities/log.h>
+#include <utilities/timer.h>
 
 #include "alphashapes3d.h"
 #include <topology/filtration.h>
@@ -82,8 +83,11 @@
     Persistence p(af);
     rInfo("Persistence initializaed");
 
+    Timer persistence_timer; persistence_timer.start();
     p.pair_simplices();
+    persistence_timer.stop();
     rInfo("Simplices paired");
+    persistence_timer.check("Persistence timer");
 
     std::map<Dimension, PDgm> dgms;
     init_diagrams(dgms, p.begin(), p.end(),