Scippy

SoPlex

Sequential object-oriented simPlex

notimer.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the class library */
4 /* SoPlex --- the Sequential object-oriented simPlex. */
5 /* */
6 /* Copyright (C) 1996-2022 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SoPlex is distributed under the terms of the ZIB Academic Licence. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file notimer.h
17  * @brief NoTimer class.
18  */
19 
20 #ifndef _NO_TIMER_H_
21 #define _NO_TIMER_H_
22 
23 #include "soplex/spxdefines.h"
24 #include "soplex/timer.h"
25 
26 namespace soplex
27 {
28 
29 class NoTimer : public Timer
30 {
31 
32 public:
33 
34  //------------------------------------
35  /**@name Construction / destruction */
36  ///@{
37  /// default constructor
39  : Timer()
40  {}
41  /// copy constructor
42  NoTimer(const NoTimer&)
43  : Timer()
44  {}
45  /// assignment operator
47  {
48  return *this;
49  }
50 
51  virtual ~NoTimer()
52  {}
53  ///@}
54 
55  //------------------------------------
56  /**@name Control */
57  ///@{
58  /// initialize timer
59  virtual void reset()
60  {}
61 
62  /// start timer
63  virtual void start()
64  {}
65 
66  /// stop timer
67  virtual Real stop()
68  {
69  return 0.0;
70  }
71 
72  /// return type of timer
73  virtual TYPE type()
74  {
75  return OFF;
76  }
77  ///@}
78 
79  //------------------------------------
80  /**@name Access */
81  ///@{
82  virtual Real time() const
83  {
84  return 0.0;
85  }
86 
87  virtual Real lastTime() const
88  {
89  return 0.0;
90  }
91 
92  ///@}
93 };
94 } // namespace soplex
95 #endif // _NO_TIMER_H_
virtual Real lastTime() const
Definition: notimer.h:87
virtual TYPE type()
return type of timer
Definition: notimer.h:73
NoTimer(const NoTimer &)
copy constructor
Definition: notimer.h:42
double Real
Definition: spxdefines.h:256
virtual Real time() const
Definition: notimer.h:82
virtual Real stop()
stop timer
Definition: notimer.h:67
Debugging, floating point type and parameter definitions.
virtual ~NoTimer()
Definition: notimer.h:51
Everything should be within this namespace.
Timer class.
TYPE
types of timers
Definition: timer.h:99
virtual void reset()
initialize timer
Definition: notimer.h:59
NoTimer & operator=(const NoTimer &)
assignment operator
Definition: notimer.h:46
NoTimer()
default constructor
Definition: notimer.h:38
virtual void start()
start timer
Definition: notimer.h:63
Wrapper for the system time query methods.
Definition: timer.h:76