From 32f9e6e8bfa584f0dfb155c0bb7cdc843614af5c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 5 Sep 2019 11:01:56 +0200 Subject: Rework EDI input - Use same main loop for both ETI and EDI inputs - Test SFN functionality with EDI input - Add log.show_process_time setting for process time printout --- src/Flowgraph.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/Flowgraph.cpp') diff --git a/src/Flowgraph.cpp b/src/Flowgraph.cpp index 4c83fe8..3d4cdcc 100644 --- a/src/Flowgraph.cpp +++ b/src/Flowgraph.cpp @@ -43,8 +43,7 @@ using EdgeIterator = std::vector >::iterator; Node::Node(shared_ptr plugin) : - myPlugin(plugin), - myProcessTime(0) + myPlugin(plugin) { PDEBUG("Node::Node(plugin(%s): %p) @ %p\n", plugin->name(), plugin.get(), this); @@ -237,8 +236,8 @@ Edge::~Edge() -Flowgraph::Flowgraph() : - myProcessTime(0) +Flowgraph::Flowgraph(bool showProcessTime) : + myShowProcessTime(showProcessTime) { PDEBUG("Flowgraph::Flowgraph() @ %p\n", this); } @@ -248,7 +247,7 @@ Flowgraph::~Flowgraph() { PDEBUG("Flowgraph::~Flowgraph() @ %p\n", this); - if (myProcessTime) { + if (myShowProcessTime and myProcessTime) { stringstream ss; ss << "Process time:\n"; -- cgit v1.2.3