mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Makes get_clock_rate
protected. It's now an implementation detail.
This commit is contained in:
parent
a3fa9440d1
commit
2712702461
@ -55,16 +55,15 @@ class Machine: public ROMMachine::Machine {
|
||||
run_for(Cycles(static_cast<int>(cycles)));
|
||||
}
|
||||
|
||||
double get_clock_rate() {
|
||||
return clock_rate_;
|
||||
}
|
||||
|
||||
protected:
|
||||
/// Runs the machine for @c cycles.
|
||||
virtual void run_for(const Cycles cycles) = 0;
|
||||
void set_clock_rate(double clock_rate) {
|
||||
clock_rate_ = clock_rate;
|
||||
}
|
||||
double get_clock_rate() {
|
||||
return clock_rate_;
|
||||
}
|
||||
|
||||
private:
|
||||
double clock_rate_ = 1.0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user