SoPlex
Toggle main menu visibility
Loading...
Searching...
No Matches
src
soplex
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-2026 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_
soplex::NoTimer::NoTimer
NoTimer(const NoTimer &)
copy constructor
Definition
notimer.h:51
soplex::NoTimer::operator=
NoTimer & operator=(const NoTimer &)
assignment operator
Definition
notimer.h:55
soplex::NoTimer::~NoTimer
virtual ~NoTimer()
Definition
notimer.h:60
soplex::NoTimer::start
virtual void start()
start timer
Definition
notimer.h:72
soplex::NoTimer::NoTimer
NoTimer()
default constructor
Definition
notimer.h:47
soplex::NoTimer::reset
virtual void reset()
initialize timer
Definition
notimer.h:68
soplex::NoTimer::stop
virtual Real stop()
stop timer
Definition
notimer.h:76
soplex::NoTimer::lastTime
virtual Real lastTime() const
Definition
notimer.h:96
soplex::NoTimer::time
virtual Real time() const
Definition
notimer.h:91
soplex::NoTimer::type
virtual TYPE type()
return type of timer
Definition
notimer.h:82
soplex::Timer::TYPE
TYPE
types of timers
Definition
timer.h:109
soplex::Timer::OFF
@ OFF
Definition
timer.h:110
soplex::Timer::Timer
Timer()
default constructor
Definition
timer.h:120
soplex
Everything should be within this namespace.
soplex::Real
double Real
Definition
spxdefines.h:269
spxdefines.h
Debugging, floating point type and parameter definitions.
timer.h
Timer class.
Generated by
1.17.0