Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSchedulableProcess.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkSchedulableProcess.h"
18 #include <algorithm>
19 
21  : m_Priority(priority)
22 {
23 }
24 
26 {
27 }
28 
30 {
31  return m_Priority;
32 }
33 
34 boost::chrono::nanoseconds mitk::SchedulableProcess::GetTotalElapsedTime() const
35 {
36  return m_TotalElapsedTime;
37 }
38 
39 void mitk::SchedulableProcess::ResetTotalElapsedTime(boost::chrono::nanoseconds carryover)
40 {
41  m_TotalElapsedTime = carryover;
42 }
43 
44 boost::chrono::nanoseconds mitk::SchedulableProcess::GetElapsedTime() const
45 {
46  return m_ElapsedTime;
47 }
48 
49 void mitk::SchedulableProcess::SetElapsedTime(boost::chrono::nanoseconds elapsedTime)
50 {
51  m_TotalElapsedTime += elapsedTime;
52  m_ElapsedTime = elapsedTime;
53 }
void SetElapsedTime(boost::chrono::nanoseconds elapsedTime)
boost::chrono::nanoseconds GetElapsedTime() const
void ResetTotalElapsedTime(boost::chrono::nanoseconds carryover=boost::chrono::nanoseconds::zero())
boost::chrono::nanoseconds GetTotalElapsedTime() const