.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user