std::chrono::high_resolution_clock::time_point TSTART_;
std::chrono::high_resolution_clock::time_point TEND_;
+float TELAPSED = 0;
+float ELAPSED = 0;
void TSTART() {TSTART_ = std::chrono::high_resolution_clock::now();}
-void TEND() {TEND_ = std::chrono::high_resolution_clock::now();}
+void TEND() {
+ std::chrono::duration<float> DT_;
+ TEND_ = std::chrono::high_resolution_clock::now();
+ DT_ = std::chrono::duration_cast<std::chrono::duration<float>>(
+ TEND_ - TSTART_
+ );
+ TELAPSED += DT_.count();
+ ELAPSED = DT_.count();
+}
void TPRINT(const char *what) {
std::chrono::duration<float> DT_;
DT_ = std::chrono::duration_cast<std::chrono::duration<float>>(
if (ps.slot().bnodes().size() > 0)
ps.fpose();
TEND();
+ jvo["ppse"] = ELAPSED;
TPRINT("ParallelSlot");
if (ps.cusp().size() > 0) {
#endif
TEND();
TPRINT("RRT");
+ jvo["rrte"] = ELAPSED;
#ifdef JSONLOGEDGES
p.logr(p.root());
#endif
// statistics to error output
+ std::cerr << "TELAPSED is " << TELAPSED << std::endl;
std::cerr << "Elapsed is " << p.elapsed() << std::endl;
std::cerr << "Goal found is " << p.goal_found() << std::endl;
std::cerr << "#nodes is " << p.nodes().size() << std::endl;
std::cerr << "- " << edges.size() << std::endl;
// JSON output
- jvo["elap"] = p.elapsed();
+ jvo["elap"] = TELAPSED;
#ifdef USE_PTHREAD
jvo["nodo"][0] = nodo;
#endif