STIR  6.2.0
CPUTimer.h
Go to the documentation of this file.
1 //
2 //
14 /*
15  Copyright (C) 2000 PARAPET partners
16  Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
17  This file is part of STIR.
18 
19  SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
20 
21  See STIR/LICENSE.txt for details
22 */
23 #ifndef __CPUTimer_H__
24 #define __CPUTimer_H__
25 
26 #include "stir/Timer.h"
27 START_NAMESPACE_STIR
28 
87 // TODO do Win95 test
88 /*
89  History:
90  1.0 by Kris Thielemans
91  1.1 by Kris Thielemans
92  use times() and GetProcessTimes()
93  1.2 by Kris Thielemans
94  moved inlines to separate file
95 */
96 class CPUTimer : public Timer
97 {
98 private:
99  inline double get_current_value() const override;
100 };
101 
102 END_NAMESPACE_STIR
103 
104 #include "stir/CPUTimer.inl"
105 
106 #endif // __CPUTimer_H__
This declares the stir::Timer class.
inline implementations for stir::CPUTimer
A class for measuring elapsed CPU time.
Definition: CPUTimer.h:96
A general base class for timers. Interface is like a stop watch.
Definition: Timer.h:53