1    	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2    	/*                                                                           */
3    	/*                  This file is part of the class library                   */
4    	/*       SoPlex --- the Sequential object-oriented simPlex.                  */
5    	/*                                                                           */
6    	/*  Copyright (c) 1996-2023 Zuse Institute Berlin (ZIB)                      */
7    	/*                                                                           */
8    	/*  Licensed under the Apache License, Version 2.0 (the "License");          */
9    	/*  you may not use this file except in compliance with the License.         */
10   	/*  You may obtain a copy of the License at                                  */
11   	/*                                                                           */
12   	/*      http://www.apache.org/licenses/LICENSE-2.0                           */
13   	/*                                                                           */
14   	/*  Unless required by applicable law or agreed to in writing, software      */
15   	/*  distributed under the License is distributed on an "AS IS" BASIS,        */
16   	/*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17   	/*  See the License for the specific language governing permissions and      */
18   	/*  limitations under the License.                                           */
19   	/*                                                                           */
20   	/*  You should have received a copy of the Apache-2.0 license                */
21   	/*  along with SoPlex; see the file LICENSE. If not email to soplex@zib.de.  */
22   	/*                                                                           */
23   	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24   	
25   	/**@file  notimer.h
26   	 * @brief NoTimer class.
27   	 */
28   	
29   	#ifndef _NO_TIMER_H_
30   	#define _NO_TIMER_H_
31   	
32   	#include "soplex/spxdefines.h"
33   	#include "soplex/timer.h"
34   	
35   	namespace soplex
36   	{
37   	
38   	class NoTimer : public Timer
39   	{
40   	
41   	public:
42   	
43   	   //------------------------------------
44   	   /**@name Construction / destruction */
45   	   ///@{
46   	   /// default constructor
47   	   NoTimer()
48   	      : Timer()
49   	   {}
50   	   /// copy constructor
51   	   NoTimer(const NoTimer&)
52   	      : Timer()
53   	   {}
54   	   /// assignment operator
55   	   NoTimer& operator=(const NoTimer&)
56   	   {
57   	      return *this;
58   	   }
59   	
60   	   virtual ~NoTimer()
61   	   {}
62   	   ///@}
63   	
64   	   //------------------------------------
65   	   /**@name Control */
66   	   ///@{
67   	   /// initialize timer
68   	   virtual void reset()
69   	   {}
70   	
71   	   /// start timer
72   	   virtual void start()
73   	   {}
74   	
75   	   /// stop timer
76   	   virtual Real stop()
77   	   {
78   	      return 0.0;
79   	   }
80   	
81   	   /// return type of timer
82   	   virtual TYPE type()
83   	   {
84   	      return OFF;
85   	   }
86   	   ///@}
87   	
88   	   //------------------------------------
89   	   /**@name Access */
90   	   ///@{
91   	   virtual Real time() const
92   	   {
93   	      return 0.0;
94   	   }
95   	
96   	   virtual Real lastTime() const
97   	   {
98   	      return 0.0;
99   	   }
100  	
101  	   ///@}
102  	};
103  	} // namespace soplex
104  	#endif // _NO_TIMER_H_
105