summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/timer.h
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-02-13 09:35:36 +0100
committer hap <happppp@users.noreply.github.com>2019-02-13 09:35:51 +0100
commitf6262a1e8695ec0cbb9eb4bcdd91e6fbffb2b5d4 (patch)
tree09ecb761cff0864773826724d84589d0ee46d018 /src/devices/machine/timer.h
parentd57284740374360eab8360a2c45100e30d931467 (diff)
revert part of timer.h change (nw)
Diffstat (limited to 'src/devices/machine/timer.h')
-rw-r--r--src/devices/machine/timer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/machine/timer.h b/src/devices/machine/timer.h
index 3fc46b1f179..66a2a8fbdae 100644
--- a/src/devices/machine/timer.h
+++ b/src/devices/machine/timer.h
@@ -111,10 +111,9 @@ public:
// adjustments
void reset() { adjust(attotime::never, 0, attotime::never); }
- void adjust(const attotime &duration, s32 param = 0, const attotime &period = attotime::never)
+ void adjust(const attotime &duration, s32 param = 0, const attotime &period = attotime::never) const
{
assert(m_type == TIMER_TYPE_GENERIC);
- m_period = period;
m_timer->adjust(duration, param, period);
}
@@ -123,7 +122,7 @@ public:
attotime time_left() const { return m_timer->remaining(); }
attotime start_time() const { return m_timer->start(); }
attotime fire_time() const { return m_timer->expire(); }
- attotime period() const { return m_period; }
+ attotime period() const { return m_period; } // only for TIMER_TYPE_PERIODIC
private:
// device-level overrides