This commit is contained in:
Matthias
2017-07-27 19:31:54 +02:00
parent 19d695d4d8
commit 8d43a1c3c2
14 changed files with 1027 additions and 41 deletions
+6
View File
@@ -66,6 +66,9 @@ private:
wfr::wfr_timestamp_sc_t startTime;
wfr::wfr_timestamp_sc_t endTime;
unsigned lastWepNodeCount = 0;
wfr::wfr_timestamp_sc_t wepCompletedTime;
#ifdef WFR_ENABLE_STATISTICS
std::mutex statMutex;
@@ -190,10 +193,13 @@ public:
const wfr::wfr_timestamp_sc_t& getStartTime() const noexcept { return startTime; }
const wfr::wfr_timestamp_sc_t& getEndTime() const noexcept { return endTime; }
wfr::wfr_duration_sc_t getWorkflowDuration() const noexcept { return endTime - startTime; };
wfr::wfr_duration_sc_t getTimeTillWepCompletion() const noexcept { return wepCompletedTime - startTime; };
wfr::wfr_duration_sc_t getMakespan() const noexcept { return endTime - createTime; };
#ifdef WFR_ENABLE_STATISTICS
void updateWepStatistics() noexcept;
wfr::wfr_duration_sc_t getEnactmentTime() const noexcept { return enactmentTime; }
void addToEnactmentTime(wfr::wfr_duration_sc_t time) {
std::lock_guard<std::mutex> lock(statMutex);